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

Method addLinearTest

test/IECore/InterpolatorTest.h:123–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121
122 template<typename T>
123 void addLinearTest( const std::string &nameSuffix )
124 {
125 static boost::shared_ptr<LinearInterpolatorTest<T> > instance(new LinearInterpolatorTest<T>());
126
127 auto test = BOOST_CLASS_TEST_CASE( &LinearInterpolatorTest<T>::testSimple, instance );
128 test->p_name.set( test->p_name.get() + nameSuffix );
129 add( test );
130
131 test = BOOST_CLASS_TEST_CASE( &LinearInterpolatorTest<T>::testTyped, instance );
132 test->p_name.set( test->p_name.get() + nameSuffix );
133 add( test );
134
135 test = BOOST_CLASS_TEST_CASE( &LinearInterpolatorTest<T>::testVector, instance );
136 test->p_name.set( test->p_name.get() + nameSuffix );
137 add( test );
138 }
139
140 template<typename T>
141 void addCubicTest( const std::string &nameSuffix )

Callers

nothing calls this directly

Calls 2

setMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected