MCPcopy Create free account
hub / github.com/arktypeio/arktype / tests

Method tests

ark/aot/usage.ts:517–526  ·  view source on GitHub ↗
(test: Node)

Source from the content-addressed store, hash-verified

515 // anywhere after `if (out instanceof type.errors) return out.issues`
516 private isPastErrorsTest(read: Node, binding: Binding): boolean {
517 const tests = (test: Node): boolean => {
518 const expression = unwrapExpression(test) as Node
519 return (
520 expression.type === "BinaryExpression" &&
521 this.isErrorsTest(expression, unwrapExpression(expression.left)) &&
522 binding.references.some(
523 ({ id }) => id === unwrapExpression(expression.left)
524 )
525 )
526 }
527 const refutes = (test: Node): boolean => {
528 const expression = unwrapExpression(test) as Node
529 return (

Callers

nothing calls this directly

Calls 2

isErrorsTestMethod · 0.95
unwrapExpressionFunction · 0.90

Tested by

no test coverage detected