(t *testing.T)
| 26 | } |
| 27 | |
| 28 | func TestBootstrapInvocationContext_IgnoresUnknownFlags(t *testing.T) { |
| 29 | inv, err := BootstrapInvocationContext([]string{"auth", "status", "--verify", "--profile", "target"}) |
| 30 | if err != nil { |
| 31 | t.Fatalf("BootstrapInvocationContext() error = %v", err) |
| 32 | } |
| 33 | if inv.Profile != "target" { |
| 34 | t.Fatalf("BootstrapInvocationContext() profile = %q, want %q", inv.Profile, "target") |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | func TestBootstrapInvocationContext_MissingProfileValue(t *testing.T) { |
| 39 | if _, err := BootstrapInvocationContext([]string{"auth", "status", "--profile"}); err == nil { |
nothing calls this directly
no test coverage detected