erio
5534347328
test: add unit tests for channel platform matching, interval validation, credits check
- TestIsPlatformPricingMatch: 12 cases covering all platform combinations
- TestMatchingPlatforms: 4 cases for platform expansion
- TestGetChannelModelPricing_AntigravityCrossPlatform: antigravity sees anthropic pricing
- TestGetChannelModelPricing_AnthropicCannotSeeAntigravityPricing: no reverse leakage
- TestResolveChannelMapping_AntigravityCrossPlatform: antigravity uses anthropic mapping
- TestFilterValidIntervals: 8 cases for empty interval filtering
- TestHasEnoughCredits: 10 cases for credits balance threshold logic
- Extract hasEnoughCredits() pure function for testability
2026-04-04 11:17:49 +08:00
..
2026-04-04 11:15:59 +08:00
2026-04-04 11:11:06 +08:00
2026-04-04 11:17:49 +08:00
2026-04-04 11:15:59 +08:00
2026-03-19 19:03:13 +08:00
2026-01-11 23:00:31 +08:00
2026-03-07 15:17:16 +08:00
2026-02-06 07:41:23 +08:00
2026-03-17 20:46:12 +08:00
2026-03-21 01:21:48 +08:00
2026-02-28 15:01:20 +08:00