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

Function TestGameWidthHeight

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

Source from the content-addressed store, hash-verified

112}
113
114func TestGameWidthHeight(t *testing.T) {
115 Run(RunOptions{
116 HeadlessMode: true,
117 NoRun: true,
118 Width: 100,
119 Height: 50,
120 }, &testScene{})
121 if GameWidth() != 100 {
122 t.Error("Width didn't return the proper value.")
123 }
124 if GameHeight() != 50 {
125 t.Error("Height didn't return the proper value.")
126 }
127}
128
129func TestSetFPSLimit(t *testing.T) {
130 Run(RunOptions{

Callers

nothing calls this directly

Calls 4

RunFunction · 0.85
GameWidthFunction · 0.85
GameHeightFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected