(t *testing.T)
| 46 | var _ = flag.Bool("json", false, "json") |
| 47 | |
| 48 | func 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 | } |
nothing calls this directly
no test coverage detected