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

Function TestSetScaleOnResize

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

Source from the content-addressed store, hash-verified

64}
65
66func TestSetScaleOnResize(t *testing.T) {
67 Run(RunOptions{
68 HeadlessMode: true,
69 NoRun: true,
70 }, &testScene{})
71 if opts.ScaleOnResize {
72 t.Error("ScaleOnResize didn't default to false.")
73 }
74 SetScaleOnResize(true)
75 if !opts.ScaleOnResize {
76 t.Error("SetScaleOnResize didn't set properly.")
77 }
78}
79
80func TestSetOverrideCloseAction(t *testing.T) {
81 Run(RunOptions{

Callers

nothing calls this directly

Calls 3

RunFunction · 0.85
SetScaleOnResizeFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected