(t *testing.T)
| 101 | } |
| 102 | |
| 103 | func TestDecoratedName(t *testing.T) { |
| 104 | root := &cobra.Command{Use: "root"} |
| 105 | topLevelCommand := &cobra.Command{Use: "pluginTopLevelCommand"} |
| 106 | root.AddCommand(topLevelCommand) |
| 107 | assert.Equal(t, decoratedName(topLevelCommand), "pluginTopLevelCommand ") |
| 108 | topLevelCommand.Annotations = map[string]string{metadata.CommandAnnotationPlugin: "true"} |
| 109 | assert.Equal(t, decoratedName(topLevelCommand), "pluginTopLevelCommand*") |
| 110 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…