(t *testing.T)
| 16 | } |
| 17 | |
| 18 | func TestBootstrapInvocationContext_ProfileEquals(t *testing.T) { |
| 19 | inv, err := BootstrapInvocationContext([]string{"auth", "status", "--profile=target"}) |
| 20 | if err != nil { |
| 21 | t.Fatalf("BootstrapInvocationContext() error = %v", err) |
| 22 | } |
| 23 | if inv.Profile != "target" { |
| 24 | t.Fatalf("BootstrapInvocationContext() profile = %q, want %q", inv.Profile, "target") |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | func TestBootstrapInvocationContext_IgnoresUnknownFlags(t *testing.T) { |
| 29 | inv, err := BootstrapInvocationContext([]string{"auth", "status", "--verify", "--profile", "target"}) |
nothing calls this directly
no test coverage detected