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

Method _test_marshal

extra_tests/snippets/stdlib_marshal.py:13–14  ·  view source on GitHub ↗
(self, data)

Source from the content-addressed store, hash-verified

11 return marshal.loads(marshal.dumps(data))
12
13 def _test_marshal(self, data):
14 self.assertEqual(self.dump_then_load(data), data)
15
16 def test_marshal_int(self):
17 self._test_marshal(0)

Callers 9

test_marshal_intMethod · 0.95
test_marshal_boolMethod · 0.95
test_marshal_floatMethod · 0.95
test_marshal_strMethod · 0.95
test_marshal_listMethod · 0.95
test_marshal_tupleMethod · 0.95
test_marshal_dictMethod · 0.95
test_marshal_setMethod · 0.95

Calls 2

dump_then_loadMethod · 0.95
assertEqualMethod · 0.45

Tested by 9

test_marshal_intMethod · 0.76
test_marshal_boolMethod · 0.76
test_marshal_floatMethod · 0.76
test_marshal_strMethod · 0.76
test_marshal_listMethod · 0.76
test_marshal_tupleMethod · 0.76
test_marshal_dictMethod · 0.76
test_marshal_setMethod · 0.76