(t *testing.T)
| 137 | } |
| 138 | |
| 139 | func TestValidArgsGetMetrics(t *testing.T) { |
| 140 | type args struct { |
| 141 | in0 *cobra.Command |
| 142 | args []string |
| 143 | toComplete string |
| 144 | } |
| 145 | tests := []struct { |
| 146 | name string |
| 147 | args args |
| 148 | want assert.Want[[]string] |
| 149 | want1 cobra.ShellCompDirective |
| 150 | }{ |
| 151 | { |
| 152 | name: "some metrics", |
| 153 | args: args{ |
| 154 | toComplete: "", |
| 155 | }, |
| 156 | want: assert.NotNil[[]string], |
| 157 | want1: cobra.ShellCompDirectiveNoFileComp, |
| 158 | }, |
| 159 | } |
| 160 | |
| 161 | for _, tt := range tests { |
| 162 | t.Run(tt.name, func(t *testing.T) { |
| 163 | got, got1 := cli.ValidArgsGetMetrics(tt.args.in0, tt.args.args, tt.args.toComplete) |
| 164 | tt.want(t, got) |
| 165 | assert.Equal(t, tt.want1, got1) |
| 166 | }) |
| 167 | } |
| 168 | } |
| 169 | |
| 170 | func TestValidArgsGetCatalogs(t *testing.T) { |
| 171 | type args struct { |
nothing calls this directly
no test coverage detected