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

nlowe / aoc2023 / 7055461519

01 Dec 2023 03:38AM UTC coverage: 19.249%. First build
7055461519

push

github

nlowe
Initial Commit for 2023

41 of 213 new or added lines in 6 files covered. (19.25%)

41 of 213 relevant lines covered (19.25%)

2.28 hits per line

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

30.0
/challenge/example/a.go
1
package example
2

3
import (
4
        "fmt"
5

6
        "github.com/nlowe/aoc2023/challenge"
7
        "github.com/nlowe/aoc2023/util"
8
        "github.com/spf13/cobra"
9
)
10

NEW
11
func aCommand() *cobra.Command {
×
NEW
12
        return &cobra.Command{
×
NEW
13
                Use:   "a",
×
NEW
14
                Short: "Example Day, Problem A",
×
NEW
15
                Run: func(_ *cobra.Command, _ []string) {
×
NEW
16
                        fmt.Printf("Answer: %d\n", a(challenge.FromFile()))
×
NEW
17
                },
×
18
        }
19
}
20

21
func a(input *challenge.Input) (result int) {
1✔
22
        return util.MustAtoI(<-input.Lines())
1✔
23
}
1✔
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