TestShadersInitialization tests whether all registered `Shader`s will `Setup` without any errors
(t *testing.T)
| 20 | |
| 21 | // TestShadersInitialization tests whether all registered `Shader`s will `Setup` without any errors |
| 22 | func TestShadersInitialization(t *testing.T) { |
| 23 | engo.Run(engo.RunOptions{ |
| 24 | NoRun: true, |
| 25 | HeadlessMode: true, |
| 26 | }, &testScene{}) |
| 27 | engo.CreateWindow("", 100, 100, false, 1) |
| 28 | defer engo.DestroyWindow() |
| 29 | |
| 30 | w := &ecs.World{} |
| 31 | w.AddSystem(&CameraSystem{}) |
| 32 | err := initShaders(w) |
| 33 | assert.NoError(t, err) |
| 34 | } |
| 35 | |
| 36 | // TestShaderCompilation tests whether the `LoadShader` method will indeed report errors iff |
| 37 | // (one of) the GLSL-shaders is incorrect. |
nothing calls this directly
no test coverage detected