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

mlange-42 / modo / 12976584274

26 Jan 2025 04:53PM CUT coverage: 61.986% (+3.6%) from 58.343%
12976584274

push

github

web-flow
Refine docs on doc-testing (#120)

* refine docs on doc-testing
* add a unit test for markdown testing

1055 of 1702 relevant lines covered (61.99%)

28.86 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

16
func warnOrError(strict bool, pattern string, args ...any) error {
×
17
        if strict {
×
18
                return fmt.Errorf(pattern, args...)
×
19
        }
×
20
        log.Printf("WARNING: "+pattern+"\n", args...)
×
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