MCPcopy
hub / github.com/di-sukharev/opencommit / matchValue

Function matchValue

out/cli.cjs:57152–57163  ·  view source on GitHub ↗
(match, value)

Source from the content-addressed store, hash-verified

57150 } = require_mock_symbols();
57151 var { buildURL: buildURL2, nop } = require_util2();
57152 var { STATUS_CODES } = require("http");
57153 var {
57154 types: {
57155 isPromise
57156 }
57157 } = require("util");
57158 function matchValue(match, value) {
57159 if (typeof match === "string") {
57160 return match === value;
57161 }
57162 if (match instanceof RegExp) {
57163 return match.test(value);
57164 }
57165 if (typeof match === "function") {
57166 return match(value) === true;

Callers 5

matchHeadersFunction · 0.85
matchKeyFunction · 0.85
getMockDispatchFunction · 0.85
checkNetConnectFunction · 0.85
[kMockAgentGet]Method · 0.85

Calls 2

matchFunction · 0.85
testMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…