From 1aa0eadbe9e0d7581d8c64f896efae544e2e2e0a Mon Sep 17 00:00:00 2001 From: skal Date: Sat, 7 Feb 2026 09:13:36 +0100 Subject: test: Add platform test coverage (test_platform.cc) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- assets/final/test_demo_assets.txt | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 assets/final/test_demo_assets.txt (limited to 'assets') 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" -- cgit v1.2.3