diff options
| author | skal <pascal.massimino@gmail.com> | 2026-02-07 10:36:58 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-02-07 10:36:58 +0100 |
| commit | 858f9d5e765bfc8f8f13b38fa0fab790139a0740 (patch) | |
| tree | 7cfe7c8db7fef27d38ec6d8b22daf1c9e8545b22 /scripts/crunch_win.sh | |
| parent | f8b3615b1ffa93eecc4fe036c40362ae708eff37 (diff) | |
test(gpu): Add comprehensive TextureManager tests
Created automated test suite for texture_manager.cc with 7 test cases:
- Basic initialization and shutdown
- Create texture from raw RGBA8 data
- Create procedural texture (using gen_noise)
- Get texture view for non-existent texture (nullptr test)
- Create and retrieve multiple textures
- Procedural generation failure handling
- Shutdown cleanup verification
Replaced old compilation-only test with proper automated test using
WebGPUTestFixture for headless GPU testing. Registered with CTest as
test #27 (TextureManagerTest).
Coverage Impact:
- Before: texture_manager.cc had 0% coverage (not run by CTest)
- After: 100% coverage (64/64 lines, 5/5 functions)
All 27 tests pass.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Diffstat (limited to 'scripts/crunch_win.sh')
0 files changed, 0 insertions, 0 deletions
