(t *testing.T)
| 1491 | } |
| 1492 | |
| 1493 | func TestRuntimeNewContextWithOptionsInitFailureHook(t *testing.T) { |
| 1494 | restore := forceRuntimeInitFailureForTest(true) |
| 1495 | defer restore() |
| 1496 | |
| 1497 | rt := NewRuntime() |
| 1498 | defer rt.Close() |
| 1499 | |
| 1500 | ctx := rt.NewContextWithOptions(DefaultBootstrap()) |
| 1501 | require.Nil(t, ctx) |
| 1502 | |
| 1503 | ctx = rt.NewContextWithOptions(NoBootstrap()) |
| 1504 | require.NotNil(t, ctx) |
| 1505 | ctx.Close() |
| 1506 | } |
| 1507 | |
| 1508 | func TestForceRuntimeEvalFailureHookDisable(t *testing.T) { |
| 1509 | restore := forceRuntimeEvalFailureForTest(true) |
nothing calls this directly
no test coverage detected