MCPcopy Index your code
hub / github.com/docker/docker-agent / TestString

Function TestString

pkg/effort/effort_test.go:314–336  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

312}
313
314func TestString(t *testing.T) {
315 t.Parallel()
316
317 tests := []struct {
318 level Level
319 want string
320 }{
321 {None, "none"},
322 {Minimal, "minimal"},
323 {Low, "low"},
324 {Medium, "medium"},
325 {High, "high"},
326 {XHigh, "xhigh"},
327 {Max, "max"},
328 }
329
330 for _, tt := range tests {
331 t.Run(string(tt.level), func(t *testing.T) {
332 t.Parallel()
333 assert.Equal(t, tt.want, tt.level.String())
334 })
335 }
336}

Callers

nothing calls this directly

Calls 2

RunMethod · 0.65
StringMethod · 0.45

Tested by

no test coverage detected