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

Method testSimpleData

test/IECore/DataConvertTest.h:88–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86
87 template<typename F, typename T>
88 void testSimpleData()
89 {
90 typename F::Ptr from = new F();
91
92 from->writable() = 512;
93
94 typedef DoubleItDataConversion< typename F::ValueType, typename T::ValueType > Conv;
95
96 typename T::Ptr to = DataConvert< F, T, Conv >()( from );
97 BOOST_CHECK( to );
98 BOOST_CHECK_EQUAL( (float)to->readable(), 1024.f );
99 }
100};
101
102struct DataConvertTestSuite : public boost::unit_test::test_suite

Callers

nothing calls this directly

Calls 2

readableMethod · 0.80
writableMethod · 0.45

Tested by

no test coverage detected