MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / assertNotContained

Method assertNotContained

test/common.py:1173–1182  ·  view source on GitHub ↗
(self, value, string, regex=False)

Source from the content-addressed store, hash-verified

1171 ))
1172
1173 def assertNotContained(self, value, string, regex=False):
1174 if callable(value):
1175 value = value() # lazy loading
1176 if callable(string):
1177 string = string()
1178 if regex:
1179 self.assertFalse(re.search(value, string, re.DOTALL), 'Expected regex "%s" NOT to match on:\n%s' % (value, limit_size(string)))
1180 else:
1181 if value in string:
1182 self.fail("Expected to NOT find '%s' in '%s'" % (limit_size(value), limit_size(string)))
1183
1184 def assertContainedIf(self, value, string, condition):
1185 if condition:

Callers 15

assertContainedIfMethod · 0.95
expect_failMethod · 0.95
_build_and_runMethod · 0.95
test_jslib_warningsMethod · 0.80
test_jslib_errorsMethod · 0.80
test_jslib_preprocessMethod · 0.80
test_firstrunMethod · 0.80
test_llvmMethod · 0.80
test_nodeMethod · 0.80
test_emccMethod · 0.80
test_emcc_portsMethod · 0.80
second_useMethod · 0.80

Calls 3

stringFunction · 0.90
limit_sizeFunction · 0.85
failMethod · 0.80

Tested by 15

test_jslib_warningsMethod · 0.64
test_jslib_errorsMethod · 0.64
test_jslib_preprocessMethod · 0.64
test_firstrunMethod · 0.64
test_llvmMethod · 0.64
test_nodeMethod · 0.64
test_emccMethod · 0.64
test_emcc_portsMethod · 0.64
second_useMethod · 0.64
test_embuilder_forceMethod · 0.64