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

Method check_hardlinks

Lib/test/test_compileall.py:1051–1058  ·  view source on GitHub ↗
(self, script, docstring=False, assertion=False)

Source from the content-addressed store, hash-verified

1049 self.assertFalse(is_hardlink(pycs[1], pycs[2]))
1050
1051 def check_hardlinks(self, script, docstring=False, assertion=False):
1052 pycs = get_pycs(script)
1053 self.assertEqual(is_hardlink(pycs[0], pycs[1]),
1054 not assertion)
1055 self.assertEqual(is_hardlink(pycs[0], pycs[2]),
1056 not assertion and not docstring)
1057 self.assertEqual(is_hardlink(pycs[1], pycs[2]),
1058 not docstring)
1059
1060 def test_hardlink(self):
1061 # Test deduplication on all combinations

Callers 3

test_hardlinkMethod · 0.95
test_recompilationMethod · 0.95
test_importMethod · 0.95

Calls 3

get_pycsFunction · 0.85
is_hardlinkFunction · 0.85
assertEqualMethod · 0.45

Tested by

no test coverage detected