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

nlowe / aoc2024 / 12102226162

01 Dec 2024 04:19AM UTC coverage: 11.329%. First build
12102226162

push

github

nlowe
Initial commit for 2024

52 of 459 new or added lines in 12 files covered. (11.33%)

52 of 459 relevant lines covered (11.33%)

1.09 hits per line

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

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

3
import (
4
        "fmt"
5
        "io"
6

7
        "github.com/spf13/cobra"
8

9
        "github.com/nlowe/aoc2024/challenge"
10
        "github.com/nlowe/aoc2024/util"
11
)
12

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

23
func a(input io.Reader) (result int) {
1✔
24
        v, _ := util.First(challenge.Ints(input))
1✔
25

1✔
26
        return v
1✔
27
}
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