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

Method assertContainedIf

test/common.py:1184–1188  ·  view source on GitHub ↗
(self, value, string, condition)

Source from the content-addressed store, hash-verified

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:
1186 self.assertContained(value, string)
1187 else:
1188 self.assertNotContained(value, string)
1189
1190 def assertBinaryEqual(self, file1, file2):
1191 self.assertEqual(os.path.getsize(file1),

Callers 15

test_emcc_cachingMethod · 0.80
test_abspathsMethod · 0.80
test_prepostMethod · 0.80
test_exit_runtimeMethod · 0.80
testMethod · 0.80
test_global_initsMethod · 0.80
test_missing_wasmMethod · 0.80
test_o_level_clampMethod · 0.80

Calls 2

assertContainedMethod · 0.95
assertNotContainedMethod · 0.95

Tested by 15

test_emcc_cachingMethod · 0.64
test_abspathsMethod · 0.64
test_prepostMethod · 0.64
test_exit_runtimeMethod · 0.64
testMethod · 0.64
test_global_initsMethod · 0.64
test_missing_wasmMethod · 0.64
test_o_level_clampMethod · 0.64