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

denvrdata / go-denvr / 12306392699

12 Dec 2024 11:11PM UTC coverage: 90.566%. First build
12306392699

Pull #1

github

web-flow
Merge f49b1922b into e33b21ad0
Pull Request #1: Initial structure

48 of 53 new or added lines in 2 files covered. (90.57%)

48 of 53 relevant lines covered (90.57%)

1.02 hits per line

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

81.82
/result/result.go
1
package result
2

3
type Result[T any] struct {
4
        value T
5
        err   error
6
}
7

8
func Wrap[T any](value T, err error) Result[T] {
2✔
9
        return Result[T]{value, err}
2✔
10
}
2✔
11

12
func (r Result[T]) Unwrap() T {
1✔
13
        if r.Ok() {
1✔
NEW
14
                return r.value
×
NEW
15
        }
×
16
        panic(r.err)
1✔
17
}
18

19
func (r Result[T]) Ok() bool {
2✔
20
        return r.err == nil
2✔
21
}
2✔
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