Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/CodebuffAI/codebuff
/ balance-calculator.integration.test.ts
File
balance-calculator.integration.test.ts
packages/billing/src/__tests__/balance-calculator.integration.test.ts:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
/**
2
* Integration tests
for
balance-calculator.ts UNION query behavior.
3
*
4
* These tests run against a real PostgreSQL database to verify that the
Callers
nothing calls this directly
Calls
8
afterEach
Function · 0.85
getGrantBalance
Function · 0.85
insert
Method · 0.80
delete
Method · 0.80
getTestDb
Function · 0.70
createGrantData
Function · 0.70
getOrderedActiveGrantsForConsumption
Function · 0.70
consumeFromOrderedGrants
Function · 0.70
Tested by
no test coverage detected