MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_value

Method test_value

Lib/test/_test_multiprocessing.py:2319–2336  ·  view source on GitHub ↗
(self, raw=False)

Source from the content-addressed store, hash-verified

2317
2318
2319 def test_value(self, raw=False):
2320 if raw:
2321 values = [self.RawValue(code, value)
2322 for code, value, _ in self.codes_values]
2323 else:
2324 values = [self.Value(code, value)
2325 for code, value, _ in self.codes_values]
2326
2327 for sv, cv in zip(values, self.codes_values):
2328 self.assertEqual(sv.value, cv[1])
2329
2330 proc = self.Process(target=self._test, args=(values,))
2331 proc.daemon = True
2332 proc.start()
2333 proc.join()
2334
2335 for sv, cv in zip(values, self.codes_values):
2336 self.assertEqual(sv.value, cv[2])
2337
2338 def test_rawvalue(self):
2339 self.test_value(raw=True)

Callers 1

test_rawvalueMethod · 0.95

Calls 6

RawValueMethod · 0.80
ValueMethod · 0.80
assertEqualMethod · 0.45
ProcessMethod · 0.45
startMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected