MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / bot-chunk.test.ts

File bot-chunk.test.ts

test/bot-chunk.test.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { describe, it, expect } from 'vitest';
2import { splitForStream, type Piece } from '../src/bot/chunk.ts';
3
4const balancedFences = (s: string) => (s.match(/```/g)?.length ?? 0) % 2 === 0;

Callers

nothing calls this directly

Calls 3

splitForStreamFunction · 0.90
totalConsumedFunction · 0.85
balancedFencesFunction · 0.85

Tested by

no test coverage detected