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

Function TestBootstrapInvocationContext_HelpFlag

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

Source from the content-addressed store, hash-verified

42}
43
44func TestBootstrapInvocationContext_HelpFlag(t *testing.T) {
45 inv, err := BootstrapInvocationContext([]string{"--help"})
46 if err != nil {
47 t.Fatalf("--help should not error, got: %v", err)
48 }
49 if inv.Profile != "" {
50 t.Fatalf("profile = %q, want empty", inv.Profile)
51 }
52}
53
54func TestBootstrapInvocationContext_ShortHelp(t *testing.T) {
55 inv, err := BootstrapInvocationContext([]string{"-h"})

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected