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

Method test

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

Source from the content-addressed store, hash-verified

175 }
176
177 test(prefix) {
178 let {args, returns} = this.resolve(prefix);
179 let text = args[Find.AttributeMapping["text"]];
180 let subtext = args[Find.AttributeMapping["subtext"]];
181 if(typeof text !== "string"|| typeof subtext !== "string") return false;
182 return text.indexOf(subtext, returns[0] - 1) === returns[0];
183 }
184
185 getProposal(tripleIndex, proposed, prefix) {
186 let proposal = this.proposalObject;

Callers

nothing calls this directly

Calls 1

resolveMethod · 0.45

Tested by

no test coverage detected