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

Function TestSetTipsEmpty

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

Source from the content-addressed store, hash-verified

21}
22
23func TestSetTipsEmpty(t *testing.T) {
24 cmd := &cobra.Command{Use: "test"}
25 SetTips(cmd, nil)
26
27 if cmd.Annotations != nil {
28 t.Fatal("expected nil annotations for empty tips")
29 }
30}
31
32func TestGetTipsNoAnnotations(t *testing.T) {
33 cmd := &cobra.Command{Use: "test"}

Callers

nothing calls this directly

Calls 1

SetTipsFunction · 0.85

Tested by

no test coverage detected