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

Function testSerialLRUCacheRecursion

src/IECorePython/LRUCacheBinding.cpp:294–303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

292};
293
294void testSerialLRUCacheRecursion( int maxCost )
295{
296 SerialTestCache &cache = recursiveCache<SerialTestCache>();
297 cache.clear();
298 cache.setMaxCost( maxCost );
299 if( cache.get( 40 ) != 102334155 )
300 {
301 throw Exception( "Unexpected result" );
302 }
303}
304
305void testParallelLRUCacheRecursion( int numIterations, size_t numValues, int maxCost )
306{

Callers

nothing calls this directly

Calls 2

clearMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected