MCPcopy
hub / github.com/coder/mux / sessionUsageService.test.ts

File sessionUsageService.test.ts

src/node/services/sessionUsageService.test.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { describe, it, expect, beforeEach, afterEach } from "bun:test";
2import { SessionUsageService, type SessionUsageTokenStatsCacheV1 } from "./sessionUsageService";
3import type { HistoryService } from "./historyService";
4import type { Config } from "@/node/config";

Callers

nothing calls this directly

Calls 15

createTestHistoryServiceFunction · 0.90
createMuxMessageFunction · 0.90
normalizeToCanonicalFunction · 0.90
createDisplayUsageFunction · 0.90
sumUsageHistoryFunction · 0.90
getTotalCostFunction · 0.90
createUsageWithCostsFunction · 0.85
getSessionUsageMethod · 0.80
rollUpUsageIntoParentMethod · 0.80
resetSessionUsageMethod · 0.80
setTokenStatsCacheMethod · 0.80
appendToHistoryMethod · 0.80

Tested by

no test coverage detected