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

Function TestRunNegativeMSAAPanic

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

Source from the content-addressed store, hash-verified

145}
146
147func TestRunNegativeMSAAPanic(t *testing.T) {
148 defer func() {
149 r := recover()
150 if r == nil {
151 t.Error("No panic when MSAA was set to -5")
152 }
153 if r != "MSAA has to be greater or equal to 0" {
154 t.Errorf("Wrong panic when MSAA was set to -5, got: %v", r)
155 }
156 }()
157 Run(RunOptions{
158 NoRun: true,
159 HeadlessMode: true,
160 MSAA: -5,
161 }, &testScene{})
162}
163
164func TestRunStandardInputs(t *testing.T) {
165 var buf bytes.Buffer

Callers

nothing calls this directly

Calls 2

RunFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected