MCPcopy Create free account
hub / github.com/larksuite/cli / TestBootstrapInvocationContext_ProfileEquals

Function TestBootstrapInvocationContext_ProfileEquals

cmd/bootstrap_test.go:18–26  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

16}
17
18func 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
28func TestBootstrapInvocationContext_IgnoresUnknownFlags(t *testing.T) {
29 inv, err := BootstrapInvocationContext([]string{"auth", "status", "--verify", "--profile", "target"})

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected