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

Function balancedFences

test/bot-chunk.test.ts:4–4  ·  view source on GitHub ↗
(s: string)

Source from the content-addressed store, hash-verified

2import { splitForStream, type Piece } from '../src/bot/chunk.ts';
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', () => {

Callers 1

bot-chunk.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected