(t *testing.T)
| 14 | } |
| 15 | |
| 16 | func TestEngineInvalidatesConfig(t *testing.T) { |
| 17 | config := NewConfig() |
| 18 | { |
| 19 | engine := NewEngineWithConfig(config) |
| 20 | require.NotNil(t, engine) |
| 21 | } |
| 22 | |
| 23 | { |
| 24 | defer func() { |
| 25 | r := recover() |
| 26 | require.NotNil(t, r, "The code did not panic") |
| 27 | }() |
| 28 | engine := NewEngineWithConfig(config) |
| 29 | require.Nil(t, engine) |
| 30 | } |
| 31 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…