Spaces Data
Minimal test - lines (354, 360)
path: .spaces[5].spaces[7].metrics.mi.mi_original
old: 116.33555601932925
new: 113.83831500612766
path: .spaces[5].spaces[7].metrics.mi.mi_sei
old: 131.3320499941895
new: 131.1892760131784
path: .spaces[5].spaces[7].metrics.mi.mi_visual_studio
old: 68.03248890019253
new: 66.57211403867115
path: .spaces[5].spaces[7].metrics.loc.cloc
old: 2.0
new: 3.0
path: .spaces[5].spaces[7].metrics.loc.sloc
old: 6.0
new: 7.0
Code
def test_str_common(self):
# Canonicalized paths roundtrip
for pathstr in ('a', 'a/b', 'a/b/c', '/', '/a/b', '/a/b/c'):
self._check_str(pathstr, (pathstr,))
# Special case for the empty path
self._check_str('.', ('',))
# Other tests for str() are in test_equivalences()
Minimal test - lines (362, 366)
path: .spaces[5].spaces[8].metrics.mi.mi_original
old: 122.70385554199552
new: 119.08893001070533
path: .spaces[5].spaces[8].metrics.mi.mi_sei
old: 101.52703161518886
new: 128.24728701086391
path: .spaces[5].spaces[8].metrics.mi.mi_visual_studio
old: 71.75664066783364
new: 69.64264912906745
path: .spaces[5].spaces[8].metrics.loc.sloc
old: 4.0
new: 5.0
path: .spaces[5].spaces[8].metrics.loc.cloc
old: 0.0
new: 1.0
Code
def test_as_posix_common(self):
P = self.cls
for pathstr in ('a', 'a/b', 'a/b/c', '/', '/a/b', '/a/b/c'):
self.assertEqual(P(pathstr).as_posix(), pathstr)
# Other tests for as_posix() are in test_equivalences()