MCPcopy Index your code
hub / github.com/larksuite/cli / TestPersistentPreRunE_AuthSubcommands

Function TestPersistentPreRunE_AuthSubcommands

cmd/root_test.go:56–65  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

54}
55
56func TestPersistentPreRunE_AuthSubcommands(t *testing.T) {
57 f, _, _, _ := cmdutil.TestFactory(t, nil)
58
59 authCmd := auth.NewCmdAuth(f)
60 for _, sub := range authCmd.Commands() {
61 if !cmdutil.IsAuthCheckDisabled(sub) {
62 t.Errorf("expected auth subcommand %q to inherit disabled auth check", sub.Name())
63 }
64 }
65}
66
67func TestPersistentPreRunE_ConfigSubcommands(t *testing.T) {
68 f, _, _, _ := cmdutil.TestFactory(t, nil)

Callers

nothing calls this directly

Calls 3

TestFactoryFunction · 0.92
IsAuthCheckDisabledFunction · 0.92
NameMethod · 0.65

Tested by

no test coverage detected