(t *testing.T)
| 42 | } |
| 43 | |
| 44 | func TestBootstrapInvocationContext_HelpFlag(t *testing.T) { |
| 45 | inv, err := BootstrapInvocationContext([]string{"--help"}) |
| 46 | if err != nil { |
| 47 | t.Fatalf("--help should not error, got: %v", err) |
| 48 | } |
| 49 | if inv.Profile != "" { |
| 50 | t.Fatalf("profile = %q, want empty", inv.Profile) |
| 51 | } |
| 52 | } |
| 53 | |
| 54 | func TestBootstrapInvocationContext_ShortHelp(t *testing.T) { |
| 55 | inv, err := BootstrapInvocationContext([]string{"-h"}) |
nothing calls this directly
no test coverage detected