(t *testing.T)
| 78 | } |
| 79 | |
| 80 | func TestSetOverrideCloseAction(t *testing.T) { |
| 81 | Run(RunOptions{ |
| 82 | HeadlessMode: true, |
| 83 | NoRun: true, |
| 84 | }, &testScene{}) |
| 85 | if opts.OverrideCloseAction { |
| 86 | t.Error("OverrideCloseAction didn't default to false.") |
| 87 | } |
| 88 | SetOverrideCloseAction(true) |
| 89 | if !opts.OverrideCloseAction { |
| 90 | t.Error("SetOverrideCloseAction didn't set properly.") |
| 91 | } |
| 92 | } |
| 93 | |
| 94 | func TestHeadless(t *testing.T) { |
| 95 | Run(RunOptions{ |
nothing calls this directly
no test coverage detected