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

Function TestAddTipsToEmpty

internal/cmdutil/tips_test.go:51–59  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

49}
50
51func TestAddTipsToEmpty(t *testing.T) {
52 cmd := &cobra.Command{Use: "test"}
53 AddTips(cmd, "only")
54
55 got := GetTips(cmd)
56 if len(got) != 1 || got[0] != "only" {
57 t.Fatalf("expected [only], got %v", got)
58 }
59}

Callers

nothing calls this directly

Calls 2

AddTipsFunction · 0.85
GetTipsFunction · 0.85

Tested by

no test coverage detected