diff --git a/central/index.md.tmpl b/central/index.md.tmpl index d00b3a07..c97afc4f 100644 --- a/central/index.md.tmpl +++ b/central/index.md.tmpl @@ -3,7 +3,7 @@ | Repository | Coverage | Code to Test Ratio | Time Execution Time | Badges | | --- | --- | --- | --- | --- | {{- range $r := .Reports }} -| [{{ $r.Repository }}]({{ $.Host }}/{{ $r.Repository }}) | {{ $r | coverage }} | {{ $r | ratio }} | {{ $r | time }} | ![{{ $r.Repository }}]({{ $.BadgesLinkRel }}/{{ $r.Repository}}/coverage.svg)
```![Coverage]({{ $.RawRootURL }}/{{ $.BadgesURLRel }}/{{ $r.Repository}}/coverage.svg)```{{ if $r.CodeToTestRatio }}
![{{ $r.Repository }}]({{ $.BadgesLinkRel }}/{{ $r.Repository}}/ratio.svg)
```![Code to Test Ratio]({{ $.RawRootURL }}/{{ $.BadgesURLRel }}/{{ $r.Repository}}/ratio.svg)```{{ end }}{{ if $r.TestExecutionTime }}
![{{ $r.Repository }}]({{ $.BadgesLinkRel }}/{{ $r.Repository}}/time.svg)
```![Test Execution Time]({{ $.RawRootURL }}/{{ $.BadgesURLRel }}/{{ $r.Repository}}/time.svg)```{{ end }} | +| [{{ $r.Repository }}]({{ $.Host }}/{{ $r.Repository }}) | {{ $r | coverage }} | {{ $r | ratio }} | {{ $r | time }} | ![{{ $r.Repository }}]({{ $.RawRootURL }}/{{ $.BadgesURLRel }}/{{ $r.Repository}}/coverage.svg){{ if $r.CodeToTestRatio }} ![{{ $r.Repository }}]({{ $.RawRootURL }}/{{ $.BadgesURLRel }}/{{ $r.Repository}}/ratio.svg){{ end }}{{ if $r.TestExecutionTime }} ![{{ $r.Repository }}]({{ $.RawRootURL }}/{{ $.BadgesURLRel }}/{{ $r.Repository}}/time.svg){{ end }}
Copy status badge markdown```![Coverage]({{ $.RawRootURL }}/{{ $.BadgesURLRel }}/{{ $r.Repository}}/coverage.svg)```{{ if $r.CodeToTestRatio }}
```![Code to Test Ratio]({{ $.RawRootURL }}/{{ $.BadgesURLRel }}/{{ $r.Repository}}/ratio.svg)```{{ end }}{{ if $r.TestExecutionTime }}
```![Test Execution Time]({{ $.RawRootURL }}/{{ $.BadgesURLRel }}/{{ $r.Repository}}/time.svg)```{{ end }}
| {{- end }} --- diff --git a/example/central/README.md b/example/central/README.md index a3f3959d..26c366b0 100644 --- a/example/central/README.md +++ b/example/central/README.md @@ -2,10 +2,10 @@ | Repository | Coverage | Code to Test Ratio | Time Execution Time | Badges | | --- | --- | --- | --- | --- | -| [k1LoW/awspec](https://github.com/k1LoW/awspec) | 38.8% | 1:0.2 | - | ![k1LoW/awspec](badges/k1LoW/awspec/coverage.svg)
```![Coverage](https://raw.githubusercontent.com/k1LoW/octocov/main/example/central/badges/k1LoW/awspec/coverage.svg)```
![k1LoW/awspec](badges/k1LoW/awspec/ratio.svg)
```![Code to Test Ratio](https://raw.githubusercontent.com/k1LoW/octocov/main/example/central/badges/k1LoW/awspec/ratio.svg)``` | -| [k1LoW/tbls](https://github.com/k1LoW/tbls) | 68.0% | 1:0.5 | 4m40s | ![k1LoW/tbls](badges/k1LoW/tbls/coverage.svg)
```![Coverage](https://raw.githubusercontent.com/k1LoW/octocov/main/example/central/badges/k1LoW/tbls/coverage.svg)```
![k1LoW/tbls](badges/k1LoW/tbls/ratio.svg)
```![Code to Test Ratio](https://raw.githubusercontent.com/k1LoW/octocov/main/example/central/badges/k1LoW/tbls/ratio.svg)```
![k1LoW/tbls](badges/k1LoW/tbls/time.svg)
```![Test Execution Time](https://raw.githubusercontent.com/k1LoW/octocov/main/example/central/badges/k1LoW/tbls/time.svg)``` | -| [sebastianbergmann/phpunit](https://github.com/sebastianbergmann/phpunit) | 80.6% | 1:0.8 | - | ![sebastianbergmann/phpunit](badges/sebastianbergmann/phpunit/coverage.svg)
```![Coverage](https://raw.githubusercontent.com/k1LoW/octocov/main/example/central/badges/sebastianbergmann/phpunit/coverage.svg)```
![sebastianbergmann/phpunit](badges/sebastianbergmann/phpunit/ratio.svg)
```![Code to Test Ratio](https://raw.githubusercontent.com/k1LoW/octocov/main/example/central/badges/sebastianbergmann/phpunit/ratio.svg)``` | -| [winebarrel/ridgepole](https://github.com/winebarrel/ridgepole) | 95.4% | 1:7.6 | - | ![winebarrel/ridgepole](badges/winebarrel/ridgepole/coverage.svg)
```![Coverage](https://raw.githubusercontent.com/k1LoW/octocov/main/example/central/badges/winebarrel/ridgepole/coverage.svg)```
![winebarrel/ridgepole](badges/winebarrel/ridgepole/ratio.svg)
```![Code to Test Ratio](https://raw.githubusercontent.com/k1LoW/octocov/main/example/central/badges/winebarrel/ridgepole/ratio.svg)``` | +| [k1LoW/awspec](https://github.com/k1LoW/awspec) | 38.8% | 1:0.2 | - | ![k1LoW/awspec](https://raw.githubusercontent.com/k1LoW/octocov/main/example/central/badges/k1LoW/awspec/coverage.svg) ![k1LoW/awspec](https://raw.githubusercontent.com/k1LoW/octocov/main/example/central/badges/k1LoW/awspec/ratio.svg)
Copy status badge markdown```![Coverage](https://raw.githubusercontent.com/k1LoW/octocov/main/example/central/badges/k1LoW/awspec/coverage.svg)```
```![Code to Test Ratio](https://raw.githubusercontent.com/k1LoW/octocov/main/example/central/badges/k1LoW/awspec/ratio.svg)```
| +| [k1LoW/tbls](https://github.com/k1LoW/tbls) | 68.0% | 1:0.5 | 4m40s | ![k1LoW/tbls](https://raw.githubusercontent.com/k1LoW/octocov/main/example/central/badges/k1LoW/tbls/coverage.svg) ![k1LoW/tbls](https://raw.githubusercontent.com/k1LoW/octocov/main/example/central/badges/k1LoW/tbls/ratio.svg) ![k1LoW/tbls](https://raw.githubusercontent.com/k1LoW/octocov/main/example/central/badges/k1LoW/tbls/time.svg)
Copy status badge markdown```![Coverage](https://raw.githubusercontent.com/k1LoW/octocov/main/example/central/badges/k1LoW/tbls/coverage.svg)```
```![Code to Test Ratio](https://raw.githubusercontent.com/k1LoW/octocov/main/example/central/badges/k1LoW/tbls/ratio.svg)```
```![Test Execution Time](https://raw.githubusercontent.com/k1LoW/octocov/main/example/central/badges/k1LoW/tbls/time.svg)```
| +| [sebastianbergmann/phpunit](https://github.com/sebastianbergmann/phpunit) | 80.6% | 1:0.8 | - | ![sebastianbergmann/phpunit](https://raw.githubusercontent.com/k1LoW/octocov/main/example/central/badges/sebastianbergmann/phpunit/coverage.svg) ![sebastianbergmann/phpunit](https://raw.githubusercontent.com/k1LoW/octocov/main/example/central/badges/sebastianbergmann/phpunit/ratio.svg)
Copy status badge markdown```![Coverage](https://raw.githubusercontent.com/k1LoW/octocov/main/example/central/badges/sebastianbergmann/phpunit/coverage.svg)```
```![Code to Test Ratio](https://raw.githubusercontent.com/k1LoW/octocov/main/example/central/badges/sebastianbergmann/phpunit/ratio.svg)```
| +| [winebarrel/ridgepole](https://github.com/winebarrel/ridgepole) | 95.4% | 1:7.6 | - | ![winebarrel/ridgepole](https://raw.githubusercontent.com/k1LoW/octocov/main/example/central/badges/winebarrel/ridgepole/coverage.svg) ![winebarrel/ridgepole](https://raw.githubusercontent.com/k1LoW/octocov/main/example/central/badges/winebarrel/ridgepole/ratio.svg)
Copy status badge markdown```![Coverage](https://raw.githubusercontent.com/k1LoW/octocov/main/example/central/badges/winebarrel/ridgepole/coverage.svg)```
```![Code to Test Ratio](https://raw.githubusercontent.com/k1LoW/octocov/main/example/central/badges/winebarrel/ridgepole/ratio.svg)```
| --- diff --git a/testdata/central_README.md.golden b/testdata/central_README.md.golden index e9824b0d..63f6bd30 100644 --- a/testdata/central_README.md.golden +++ b/testdata/central_README.md.golden @@ -2,10 +2,10 @@ | Repository | Coverage | Code to Test Ratio | Time Execution Time | Badges | | --- | --- | --- | --- | --- | -| [k1LoW/awspec](https://github.com/k1LoW/awspec) | 38.8% | 1:0.2 | - | ![k1LoW/awspec](badges/k1LoW/awspec/coverage.svg)
```![Coverage](https://raw.githubusercontent.com/k1LoW/octocov/main/badges/k1LoW/awspec/coverage.svg)```
![k1LoW/awspec](badges/k1LoW/awspec/ratio.svg)
```![Code to Test Ratio](https://raw.githubusercontent.com/k1LoW/octocov/main/badges/k1LoW/awspec/ratio.svg)``` | -| [k1LoW/tbls](https://github.com/k1LoW/tbls) | 68.0% | 1:0.5 | 4m40s | ![k1LoW/tbls](badges/k1LoW/tbls/coverage.svg)
```![Coverage](https://raw.githubusercontent.com/k1LoW/octocov/main/badges/k1LoW/tbls/coverage.svg)```
![k1LoW/tbls](badges/k1LoW/tbls/ratio.svg)
```![Code to Test Ratio](https://raw.githubusercontent.com/k1LoW/octocov/main/badges/k1LoW/tbls/ratio.svg)```
![k1LoW/tbls](badges/k1LoW/tbls/time.svg)
```![Test Execution Time](https://raw.githubusercontent.com/k1LoW/octocov/main/badges/k1LoW/tbls/time.svg)``` | -| [sebastianbergmann/phpunit](https://github.com/sebastianbergmann/phpunit) | 80.6% | 1:0.8 | - | ![sebastianbergmann/phpunit](badges/sebastianbergmann/phpunit/coverage.svg)
```![Coverage](https://raw.githubusercontent.com/k1LoW/octocov/main/badges/sebastianbergmann/phpunit/coverage.svg)```
![sebastianbergmann/phpunit](badges/sebastianbergmann/phpunit/ratio.svg)
```![Code to Test Ratio](https://raw.githubusercontent.com/k1LoW/octocov/main/badges/sebastianbergmann/phpunit/ratio.svg)``` | -| [winebarrel/ridgepole](https://github.com/winebarrel/ridgepole) | 95.4% | 1:7.6 | - | ![winebarrel/ridgepole](badges/winebarrel/ridgepole/coverage.svg)
```![Coverage](https://raw.githubusercontent.com/k1LoW/octocov/main/badges/winebarrel/ridgepole/coverage.svg)```
![winebarrel/ridgepole](badges/winebarrel/ridgepole/ratio.svg)
```![Code to Test Ratio](https://raw.githubusercontent.com/k1LoW/octocov/main/badges/winebarrel/ridgepole/ratio.svg)``` | +| [k1LoW/awspec](https://github.com/k1LoW/awspec) | 38.8% | 1:0.2 | - | ![k1LoW/awspec](https://raw.githubusercontent.com/k1LoW/octocov/main/badges/k1LoW/awspec/coverage.svg) ![k1LoW/awspec](https://raw.githubusercontent.com/k1LoW/octocov/main/badges/k1LoW/awspec/ratio.svg)
Copy status badge markdown```![Coverage](https://raw.githubusercontent.com/k1LoW/octocov/main/badges/k1LoW/awspec/coverage.svg)```
```![Code to Test Ratio](https://raw.githubusercontent.com/k1LoW/octocov/main/badges/k1LoW/awspec/ratio.svg)```
| +| [k1LoW/tbls](https://github.com/k1LoW/tbls) | 68.0% | 1:0.5 | 4m40s | ![k1LoW/tbls](https://raw.githubusercontent.com/k1LoW/octocov/main/badges/k1LoW/tbls/coverage.svg) ![k1LoW/tbls](https://raw.githubusercontent.com/k1LoW/octocov/main/badges/k1LoW/tbls/ratio.svg) ![k1LoW/tbls](https://raw.githubusercontent.com/k1LoW/octocov/main/badges/k1LoW/tbls/time.svg)
Copy status badge markdown```![Coverage](https://raw.githubusercontent.com/k1LoW/octocov/main/badges/k1LoW/tbls/coverage.svg)```
```![Code to Test Ratio](https://raw.githubusercontent.com/k1LoW/octocov/main/badges/k1LoW/tbls/ratio.svg)```
```![Test Execution Time](https://raw.githubusercontent.com/k1LoW/octocov/main/badges/k1LoW/tbls/time.svg)```
| +| [sebastianbergmann/phpunit](https://github.com/sebastianbergmann/phpunit) | 80.6% | 1:0.8 | - | ![sebastianbergmann/phpunit](https://raw.githubusercontent.com/k1LoW/octocov/main/badges/sebastianbergmann/phpunit/coverage.svg) ![sebastianbergmann/phpunit](https://raw.githubusercontent.com/k1LoW/octocov/main/badges/sebastianbergmann/phpunit/ratio.svg)
Copy status badge markdown```![Coverage](https://raw.githubusercontent.com/k1LoW/octocov/main/badges/sebastianbergmann/phpunit/coverage.svg)```
```![Code to Test Ratio](https://raw.githubusercontent.com/k1LoW/octocov/main/badges/sebastianbergmann/phpunit/ratio.svg)```
| +| [winebarrel/ridgepole](https://github.com/winebarrel/ridgepole) | 95.4% | 1:7.6 | - | ![winebarrel/ridgepole](https://raw.githubusercontent.com/k1LoW/octocov/main/badges/winebarrel/ridgepole/coverage.svg) ![winebarrel/ridgepole](https://raw.githubusercontent.com/k1LoW/octocov/main/badges/winebarrel/ridgepole/ratio.svg)
Copy status badge markdown```![Coverage](https://raw.githubusercontent.com/k1LoW/octocov/main/badges/winebarrel/ridgepole/coverage.svg)```
```![Code to Test Ratio](https://raw.githubusercontent.com/k1LoW/octocov/main/badges/winebarrel/ridgepole/ratio.svg)```
| ---