reverted format duration change
All checks were successful
Tests / Run Go Tests (push) Successful in 1m28s
All checks were successful
Tests / Run Go Tests (push) Successful in 1m28s
This commit is contained in:
@@ -47,7 +47,7 @@ jobs:
|
||||
restore-keys: |-
|
||||
arbeitszeitmessung-
|
||||
- name: Run Go Tests
|
||||
run: cd Backend && mkdir .test && go test ./...
|
||||
run: cd Backend && mkdir .test && go test ./... -coverprofile=.test/coverage.out -json > .test/report.json
|
||||
- name: Verify coverage report exists
|
||||
run: |
|
||||
if [ -f "Backend/.test/coverage.out" ]; then
|
||||
|
||||
@@ -31,7 +31,6 @@ func FormatDuration(d time.Duration) string {
|
||||
|
||||
// Converts duration to string
|
||||
func FormatDurationFill(d time.Duration, fill bool) string {
|
||||
return fmt.Sprintf("%.1f", d.Hours())
|
||||
hours := int(d.Abs().Hours())
|
||||
minutes := int(d.Abs().Minutes()) % 60
|
||||
sign := ""
|
||||
|
||||
Reference in New Issue
Block a user