MCPcopy
hub / github.com/witheve/Eve / test

Method test

src/runtime/providers/string.ts:345–351  ·  view source on GitHub ↗
(prefix)

Source from the content-addressed store, hash-verified

343 }
344
345 test(prefix) {
346 let {args, returns} = this.resolve(prefix);
347 let [text, az] = args;
348 if(!this.validAsOption(az)) return false;
349 if(typeof text !== "string") return false;
350 return this.getLength(text, az) === returns[0];
351 }
352
353 getProposal(tripleIndex, proposed, prefix) {
354 let proposal = this.proposalObject;

Callers

nothing calls this directly

Calls 3

validAsOptionMethod · 0.95
getLengthMethod · 0.95
resolveMethod · 0.45

Tested by

no test coverage detected