MCPcopy Create free account
hub / github.com/apache/maka / positiveCount

Function positiveCount

packages/runtime-host/src/protocol/runtime-resource.ts:631–635  ·  view source on GitHub ↗
(value: unknown, label: string)

Source from the content-addressed store, hash-verified

629}
630
631function positiveCount(value: unknown, label: string): number {
632 const count = requireCount(value, label);
633 if (count < 1) throw invalidProtocolFrame(`Invalid ${label}`);
634 return count;
635}
636
637function controlSequence(value: unknown, label: string): number {
638 const sequence = positiveCount(value, label);

Callers 2

controlSequenceFunction · 0.70

Calls 2

requireCountFunction · 0.85
invalidProtocolFrameFunction · 0.85

Tested by

no test coverage detected