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

Function TestBootstrapInvocationContext_HelpWithProfile

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

Source from the content-addressed store, hash-verified

62}
63
64func TestBootstrapInvocationContext_HelpWithProfile(t *testing.T) {
65 inv, err := BootstrapInvocationContext([]string{"--profile", "target", "--help"})
66 if err != nil {
67 t.Fatalf("--profile + --help should not error, got: %v", err)
68 }
69 if inv.Profile != "target" {
70 t.Fatalf("profile = %q, want %q", inv.Profile, "target")
71 }
72}

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected