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

Function TestBootstrapInvocationContext_ShortHelp

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

Source from the content-addressed store, hash-verified

52}
53
54func TestBootstrapInvocationContext_ShortHelp(t *testing.T) {
55 inv, err := BootstrapInvocationContext([]string{"-h"})
56 if err != nil {
57 t.Fatalf("-h should not error, got: %v", err)
58 }
59 if inv.Profile != "" {
60 t.Fatalf("profile = %q, want empty", inv.Profile)
61 }
62}
63
64func TestBootstrapInvocationContext_HelpWithProfile(t *testing.T) {
65 inv, err := BootstrapInvocationContext([]string{"--profile", "target", "--help"})

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected