(t *testing.T)
| 21 | } |
| 22 | |
| 23 | func 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 | |
| 32 | func TestGetTipsNoAnnotations(t *testing.T) { |
| 33 | cmd := &cobra.Command{Use: "test"} |