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

Function is_subset

deps/inspector_protocol/check_protocol_compatibility.py:388–393  ·  view source on GitHub ↗
(subset, superset, message)

Source from the content-addressed store, hash-verified

386 ]
387
388 def is_subset(subset, superset, message):
389 for i in range(len(subset)):
390 if subset[i] not in superset:
391 sys.stderr.write("%s error: %s\n" % (message, subset[i]))
392 return False
393 return True
394
395 def errors_match(expected, actual):
396 return (is_subset(actual, expected, "Unexpected") and

Callers 1

errors_matchFunction · 0.70

Calls 2

rangeFunction · 0.50
writeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…