MCPcopy Create free account
hub / github.com/clouditor/clouditor / TestValidArgsGetMetrics

Function TestValidArgsGetMetrics

cli/session_test.go:139–168  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

137}
138
139func 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
170func TestValidArgsGetCatalogs(t *testing.T) {
171 type args struct {

Callers

nothing calls this directly

Calls 2

ValidArgsGetMetricsFunction · 0.92
EqualFunction · 0.92

Tested by

no test coverage detected