MCPcopy Index your code
hub / github.com/nodejs/node / checkPattern

Function checkPattern

test/common/debugger.js:60–65  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

58
59 waitFor(pattern) {
60 function checkPattern(str) {
61 if (Array.isArray(pattern)) {
62 return pattern.every((p) => p.test(str));
63 }
64 return pattern.test(str);
65 }
66
67 return new Promise((resolve, reject) => {
68 function checkOutput() {

Callers 1

checkOutputFunction · 0.85

Calls 2

everyMethod · 0.80
testMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…