MCPcopy
hub / github.com/mongodb/node-mongodb-native / isLogRelevant

Function isLogRelevant

test/tools/unified-spec-runner/match.ts:711–723  ·  view source on GitHub ↗
(log: ExpectedLogMessage)

Source from the content-addressed store, hash-verified

709 entities: EntitiesMap
710): ExpectedLogMessage[] {
711 function isLogRelevant(log: ExpectedLogMessage) {
712 for (const logToIgnore of logsToIgnore) {
713 try {
714 // see if log matches a log to ignore, it is not relevant
715 resultCheck(log.data, logToIgnore.data, entities, undefined, false);
716 return false;
717 } catch {
718 continue;
719 }
720 }
721 // if log does not match any logs to ignore, it is relevant
722 return true;
723 }
724 const filteredMessages: ExpectedLogMessage[] = actual.filter(isLogRelevant);
725 return filteredMessages;
726}

Callers

nothing calls this directly

Calls 1

resultCheckFunction · 0.85

Tested by

no test coverage detected