MCPcopy Create free account
hub / github.com/aptly-dev/aptly / TestRunMain

Function TestRunMain

main_test.go:48–61  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

46var _ = flag.Bool("json", false, "json")
47
48func TestRunMain(t *testing.T) {
49 if Version == "" {
50 Version = "unknown"
51 }
52
53 aptly.Version = Version
54 aptly.AptlyConf = AptlyConf
55
56 args := filterOutTestArgs(os.Args[1:])
57 root := cmd.RootCommand()
58 root.UsageLine = "aptly"
59
60 fmt.Printf("EXIT: %d\n", cmd.Run(root, args, true))
61}

Callers

nothing calls this directly

Calls 4

RootCommandFunction · 0.92
RunFunction · 0.92
filterOutTestArgsFunction · 0.85
PrintfMethod · 0.65

Tested by

no test coverage detected