(t *testing.T)
| 6 | import "testing" |
| 7 | |
| 8 | func TestBootstrapInvocationContext_ProfileFlag(t *testing.T) { |
| 9 | inv, err := BootstrapInvocationContext([]string{"--profile", "target", "auth", "status"}) |
| 10 | if err != nil { |
| 11 | t.Fatalf("BootstrapInvocationContext() error = %v", err) |
| 12 | } |
| 13 | if inv.Profile != "target" { |
| 14 | t.Fatalf("BootstrapInvocationContext() profile = %q, want %q", inv.Profile, "target") |
| 15 | } |
| 16 | } |
| 17 | |
| 18 | func TestBootstrapInvocationContext_ProfileEquals(t *testing.T) { |
| 19 | inv, err := BootstrapInvocationContext([]string{"auth", "status", "--profile=target"}) |
nothing calls this directly
no test coverage detected