erio
9028d2085f
test: add unit tests for billing, websearch, and notify systems
Billing (25 tests):
- CalculateCostUnified: nil resolver fallback, token/per_request/image modes
- GetModelPricingWithChannel: nil/partial/full channel overrides
- resolveAccountStatsCost: four-level priority chain integration tests
WebSearch (18 tests):
- PopulateWebSearchUsage: nil input, manager states, QuotaLimit nil/*int64
- ResetWebSearchUsage: nil manager error
- Manager.ResetUsage: nil Redis
- shouldEmulateWebSearch: full decision chain (8 scenarios)
Notify (36 tests):
- ParseNotifyEmails/MarshalNotifyEmails: old/new format, roundtrip
- crossedDownward: boundary values, threshold semantics
- checkQuotaDimCrossings: mixed dimensions, disabled/zero skip
2026-04-14 09:36:40 +08:00
..
2026-04-14 09:36:40 +08:00
2026-04-14 09:24:17 +08:00
2026-04-14 09:36:40 +08:00
2026-04-14 09:35:20 +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-04-11 13:16:35 +08:00
2026-04-14 09:23:02 +08:00
2026-02-28 15:01:20 +08:00