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

ghettovoice / abnf / 18409814699

10 Oct 2025 02:38PM UTC coverage: 70.728% (-16.9%) from 87.642%
18409814699

Pull #49

github

ghettovoice
Fix test action to use new coverage file
Pull Request #49: Work on #47 + generator refactoring

823 of 1054 new or added lines in 9 files covered. (78.08%)

33 existing lines in 6 files now uncovered.

1428 of 2019 relevant lines covered (70.73%)

49.99 hits per line

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

66.67
/errors.go
1
package abnf
2

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

8
const (
9
        // ErrNotMatched returned by operators if input doesn't match
10
        ErrNotMatched sentinelError = "not matched"
11
)
12

13
type sentinelError string
14

15
func (e sentinelError) Error() string { return string(e) }
48✔
16

17
func newOpError(op string, pos uint, err error) error {
56✔
18
        if err == nil {
56✔
NEW
19
                return nil
×
NEW
20
        }
×
21
        return fmt.Errorf("operator %q failed at position %d: %w", op, pos, err) //errtrace:skip
56✔
22
}
23

24
func joinErrs(errs ...error) error {
8✔
25
        err := errors.Join(errs...)
8✔
26
        if err == nil {
8✔
NEW
27
                return nil
×
NEW
28
        }
×
29
        return fmt.Errorf("\n%w", err) //errtrace:skip
8✔
30
}
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

© 2026 Coveralls, Inc