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

Method testConstructors

test/IECore/CachedReader.py:43–52  ·  view source on GitHub ↗
( self )

Source from the content-addressed store, hash-verified

41class CachedReaderTest( unittest.TestCase ) :
42
43 def testConstructors( self ) :
44
45 # test default pool
46 r = IECore.CachedReader( IECore.SearchPath( "./" ) )
47 self.assertTrue( r.objectPool().isSame( IECore.ObjectPool.defaultObjectPool() ) )
48
49 # test custom pool
50 pool = IECore.ObjectPool( 100 * 1024 * 1024 )
51 r = IECore.CachedReader( IECore.SearchPath( "./" ), pool )
52 self.assertTrue( r.objectPool().isSame( pool ) )
53
54 def test( self ) :
55

Callers

nothing calls this directly

Calls 5

objectPoolMethod · 0.95
CachedReaderMethod · 0.80
SearchPathMethod · 0.80
defaultObjectPoolMethod · 0.80
ObjectPoolMethod · 0.80

Tested by

no test coverage detected