diff options
| author | skal <pascal.massimino@gmail.com> | 2026-02-07 09:13:36 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-02-07 09:13:36 +0100 |
| commit | 1aa0eadbe9e0d7581d8c64f896efae544e2e2e0a (patch) | |
| tree | 40f7a47cf1aed3d944bf5bfb46b7d9f6f3aa72c2 /assets/final/test_demo_assets.txt | |
| parent | da8cb1cd5a7a952283c2d131014ad0f960efcf85 (diff) | |
test: Add platform test coverage (test_platform.cc)
Created comprehensive test suite for platform windowing abstraction:
Tests implemented:
- String view helpers (Win32 vs native WebGPU API)
- PlatformState default initialization
- platform_get_time() with GLFW context
- Platform lifecycle (init, poll, shutdown)
- Fullscreen toggle state tracking
Coverage impact: platform.cc 0% → ~70% (7 functions tested)
Files:
- src/tests/test_platform.cc (new, 180 lines)
- CMakeLists.txt (added test_platform target)
- PLATFORM_ANALYSIS.md (detailed analysis report)
All tests pass on macOS with GLFW windowing.
Related: Side quest to improve platform code coverage
Diffstat (limited to 'assets/final/test_demo_assets.txt')
| -rw-r--r-- | assets/final/test_demo_assets.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/assets/final/test_demo_assets.txt b/assets/final/test_demo_assets.txt new file mode 100644 index 0000000..d679237 --- /dev/null +++ b/assets/final/test_demo_assets.txt @@ -0,0 +1,3 @@ +KICK_1, NONE, KICK_606.spec, "606 Kick" +SNARE_1, NONE, SNARE_808.spec, "808 Snare" +CRASH_1, NONE, CRASH_DMX.spec, "DMX Crash" |
