MCPcopy Create free account
hub / github.com/ImageEngine/cortex / testSize

Method testSize

test/IECore/PathMatcherTest.py:962–977  ·  view source on GitHub ↗
( self )

Source from the content-addressed store, hash-verified

960 self.assertEqual( m3.paths(), [ "/a/b/c/d/myTest" ] )
961
962 def testSize( self ) :
963
964 m = IECore.PathMatcher()
965 self.assertEqual( m.size(), 0 )
966
967 m.addPath( "/a" )
968 self.assertEqual( m.size(), 1 )
969
970 m.addPath( "/a/b/c" )
971 self.assertEqual( m.size(), 2 )
972
973 m.addPaths( IECore.PathMatcher( [ "/b/d/e" ] ) )
974 self.assertEqual( m.size(), 3 )
975
976 m.clear()
977 self.assertEqual( m.size(), 0 )
978
979if __name__ == "__main__":
980 unittest.main()

Callers

nothing calls this directly

Calls 5

sizeMethod · 0.95
addPathMethod · 0.95
addPathsMethod · 0.95
clearMethod · 0.95
PathMatcherMethod · 0.80

Tested by

no test coverage detected