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

m-lab / uuid / #608639948

25 Aug 2023 12:59PM UTC coverage: 100.0%. Remained the same
#608639948

Pull #13

travis-ci

Pull Request #13: Update m-lab/go to v0.1.66

78 of 78 relevant lines covered (100.0%)

3.62 hits per line

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

100.0
/cmd/create-uuid-prefix-file/main.go
1
package main
2

3
import (
4
        "flag"
5

6
        "github.com/m-lab/go/flagx"
7
        "github.com/m-lab/go/rtx"
8
        "github.com/m-lab/uuid/prefix"
9
)
10

11
var (
12
        filename = flag.String("filename", "/var/local/uuid/prefix",
13
                "The file to which the prefix should be written. If the file "+
14
                        "does not exist, it will be created.  If the file's directory "+
15
                        "does not exist, creation will fail.")
16
)
17

18
func main() {
1✔
19
        flag.Parse()
1✔
20
        flagx.ArgsFromEnv(flag.CommandLine)
1✔
21

1✔
22
        rtx.Must(prefix.Generate(*filename), "Could not create prefix file.")
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

© 2025 Coveralls, Inc