| 482 | } // namespace |
| 483 | |
| 484 | int main() |
| 485 | { |
| 486 | std::printf("ClientComp DSP test harness (fs=%.0f Hz, block=%d)\n\n", |
| 487 | kSampleRate, kBlockSize); |
| 488 | |
| 489 | testBypassDisabled(); |
| 490 | testBelowThreshold(); |
| 491 | testStaticRatio(); |
| 492 | testLimitRatio(); |
| 493 | testMakeupGain(); |
| 494 | testLimiterCeiling(); |
| 495 | testStereoLinked(); |
| 496 | testAttackTiming(); |
| 497 | testSoftKneeMonotonic(); |
| 498 | testTransientSanity(); |
| 499 | testResetClearsEnvelope(); |
| 500 | |
| 501 | std::printf("\n%s\n", |
| 502 | g_failed == 0 |
| 503 | ? "All tests passed." |
| 504 | : (std::to_string(g_failed) + " test(s) failed.").c_str()); |
| 505 | return g_failed == 0 ? 0 : 1; |
| 506 | } |
nothing calls this directly
no test coverage detected