MCPcopy Create free account
hub / github.com/dataease/SQLBot / inferExpectations

Method inferExpectations

frontend/public/swagger-ui-bundle.js:44128–44144  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

44126 }
44127 }
44128 const Dp = class Trace extends Ap {
44129 inferExpectations() {
44130 const s = this.displayTrace().split('\n'),
44131 o = new Set()
44132 let i = -1
44133 for (let a = 0; a < s.length; a++) {
44134 const u = s[a]
44135 if (u.includes('M|')) {
44136 const s = u.match(/]'(.*)'$/)
44137 s && s[1] && (i = a)
44138 }
44139 if (a > i) {
44140 const s = u.match(/N\|\[TLS\(([^)]+)\)]/)
44141 s && o.add(s[1])
44142 }
44143 }
44144 return new Rp(...o)
44145 }
44146 },
44147 Lp = new grammar(),

Callers 1

es_evaluateFunction · 0.80

Calls 2

addMethod · 0.65
includesMethod · 0.45

Tested by

no test coverage detected