GroveEngine/tests
StillHammer 3864450b0d feat: Add Scenario 7 - Limit Tests with extreme conditions
Implements comprehensive limit testing for hot-reload system:
- Large state serialization (100k particles, 1M terrain cells)
- Long initialization with timeout detection
- Memory pressure testing (50 consecutive reloads)
- Incremental reload stability (10 iterations)
- State corruption detection and validation

New files:
- planTI/scenario_07_limits.md: Complete test documentation
- tests/modules/HeavyStateModule.{h,cpp}: Heavy state simulation module
- tests/integration/test_07_limits.cpp: 5-test integration suite

Fixes:
- src/ModuleLoader.cpp: Add null-checks to all log functions to prevent cleanup crashes
- src/SequentialModuleSystem.cpp: Check logger existence before creation to avoid duplicate registration
- tests/CMakeLists.txt: Add HeavyStateModule library and test_07_limits target

All tests pass with exit code 0:
- TEST 1: Large State - getState 1.77ms, setState 200ms ✓
- TEST 2: Timeout - Detected at 3.2s ✓
- TEST 3: Memory Pressure - 0.81MB growth over 50 reloads ✓
- TEST 4: Incremental - 173ms avg reload time ✓
- TEST 5: Corruption - Invalid state rejected ✓

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-17 11:29:48 +08:00
..
helpers feat: Add Memory Leak Hunter test & fix critical ModuleLoader leaks 2025-11-16 10:06:18 +08:00
hotreload feat: Add comprehensive hot-reload test suite with 3 integration scenarios 2025-11-13 22:13:07 +08:00
integration feat: Add Scenario 7 - Limit Tests with extreme conditions 2025-11-17 11:29:48 +08:00
modules feat: Add Scenario 7 - Limit Tests with extreme conditions 2025-11-17 11:29:48 +08:00
CMakeLists.txt feat: Add Scenario 7 - Limit Tests with extreme conditions 2025-11-17 11:29:48 +08:00