MCPcopy
hub / github.com/EngoEngine/engo / TestSetOverrideCloseAction

Function TestSetOverrideCloseAction

engo_test.go:80–92  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

78}
79
80func 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
94func TestHeadless(t *testing.T) {
95 Run(RunOptions{

Callers

nothing calls this directly

Calls 3

RunFunction · 0.85
SetOverrideCloseActionFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected