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

Method testIntersection

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

Source from the content-addressed store, hash-verified

951 self.assertEqual( m2, m2c )
952
953 def testIntersection( self ) :
954
955 m1 = IECore.PathMatcher( [ "/a/b/c/d/myTest", "/a/b/c/myTest", "/a/b/c"] )
956 m2 = IECore.PathMatcher( [ "/a/b/c/d/myTest" ] )
957
958 m3 = m1.intersection( m2 )
959
960 self.assertEqual( m3.paths(), [ "/a/b/c/d/myTest" ] )
961
962 def testSize( self ) :
963

Callers

nothing calls this directly

Calls 3

intersectionMethod · 0.95
PathMatcherMethod · 0.80
pathsMethod · 0.45

Tested by

no test coverage detected