(t *testing.T)
| 242 | } |
| 243 | |
| 244 | func TestValidatePatternErrorMessage(t *testing.T) { |
| 245 | err := validatePattern("FOO-BAR") |
| 246 | assert.Assert(t, err != nil, "Expected pattern with dash to be invalid") |
| 247 | expectedMsg := "pattern `FOO-BAR` contains invalid character `-` at position 3" |
| 248 | assert.Equal(t, err.Error(), expectedMsg) |
| 249 | } |
nothing calls this directly
no test coverage detected