(t *testing.T)
| 312 | } |
| 313 | |
| 314 | func 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 | } |