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

Function test

src/runtime/providers/math.ts:22–25  ·  view source on GitHub ↗
(prefix)

Source from the content-addressed store, hash-verified

20
21 // Check if our return is equivalent to the result of the total function.
22 test(prefix) {
23 let {args, returns} = this.resolve(prefix);
24 return this.getReturnValue(args) === returns[0];
25 }
26
27 // Total functions always have a cardinality of 1
28 getProposal(tripleIndex, proposed, prefix) {

Callers 6

strings.tsFile · 0.50
math.tsFile · 0.50
join.tsFile · 0.50
eavs.tsFile · 0.50
expandWordUnderCursorFunction · 0.50

Calls 2

resolveMethod · 0.45
getReturnValueMethod · 0.45

Tested by

no test coverage detected