• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mlange-42 / modo / 12976434537

26 Jan 2025 04:31PM CUT coverage: 58.343% (-2.4%) from 60.763%
12976434537

push

github

web-flow
Doc-test markdown files (#119)

8 of 90 new or added lines in 4 files covered. (8.89%)

2 existing lines in 1 file now uncovered.

993 of 1702 relevant lines covered (58.34%)

28.57 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

50.0
/document/util.go
1
package document
2

3
import (
4
        "fmt"
5
        "log"
6
)
7

8
// appends to a slice, but guaranties to return a new one and not alter the original.
9
func appendNew[T any](sl []T, elems ...T) []T {
664✔
10
        sl2 := make([]T, len(sl), len(sl)+len(elems))
664✔
11
        copy(sl2, sl)
664✔
12
        sl2 = append(sl2, elems...)
664✔
13
        return sl2
664✔
14
}
664✔
15

NEW
16
func warnOrError(strict bool, pattern string, args ...any) error {
×
NEW
17
        if strict {
×
NEW
18
                return fmt.Errorf(pattern, args...)
×
NEW
19
        }
×
NEW
20
        log.Printf("WARNING: "+pattern+"\n", args...)
×
NEW
21
        return nil
×
22
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc