MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / totalConsumed

Function totalConsumed

test/bot-chunk.test.ts:5–5  ·  view source on GitHub ↗
(ps: Piece[])

Source from the content-addressed store, hash-verified

3
4const balancedFences = (s: string) => (s.match(/```/g)?.length ?? 0) % 2 === 0;
5const totalConsumed = (ps: Piece[]) => ps.reduce((n, p) => n + p.consumed, 0);
6
7describe('splitForStream', () => {
8 it('keeps short text in a single piece, consuming all of it', () => {

Callers 1

bot-chunk.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected