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

ghettovoice / abnf / 18524247359

10 Oct 2025 06:30PM UTC coverage: 70.728% (+1.2%) from 69.501%
18524247359

push

github

ghettovoice
Release v0.4.0

1428 of 2019 relevant lines covered (70.73%)

50.25 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✔
19
                return nil
×
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✔
27
                return nil
×
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