• erio's avatar
    test: add unit tests for channel pricing restriction in scheduling phase · 6d3ea64a
    erio authored
    20 test cases covering:
    - billingModelForRestriction: 4 cases (requested/channel_mapped/upstream/empty)
    - resolveAccountUpstreamModel: 3 cases (antigravity/unsupported/non-antigravity)
    - checkChannelPricingRestriction: 10 cases (nil guards, 3 billing sources,
      RestrictModels disabled, no channel)
    - isUpstreamModelRestrictedByChannel: 3 cases (restricted/allowed/unsupported)
    6d3ea64a
gateway_channel_restriction_test.go 10.4 KB