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

Function TestBootstrapInvocationContext_IgnoresUnknownFlags

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

Source from the content-addressed store, hash-verified

26}
27
28func 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
38func TestBootstrapInvocationContext_MissingProfileValue(t *testing.T) {
39 if _, err := BootstrapInvocationContext([]string{"auth", "status", "--profile"}); err == nil {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected