MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/OpenColorIO / AddLogTest

Function AddLogTest

tests/gpu/LogOp_test.cpp:26–42  ·  view source on GitHub ↗

Helper method to build unit tests

Source from the content-addressed store, hash-verified

24
25// Helper method to build unit tests
26void AddLogTest(OCIOGPUTest & test,
27 OCIO::TransformDirection direction,
28 float base,
29 float epsilon)
30{
31 OCIO::LogTransformRcPtr log = OCIO::LogTransform::Create();
32 log->setDirection(direction);
33 log->setBase(base);
34
35 test.setProcessor(log);
36
37 test.setErrorThreshold(epsilon);
38
39 // TODO: Would like to be able to remove the setTestNaN(false) and
40 // setTestInfinity(false) from all of these tests.
41 test.setTestInfinity(false);
42}
43
44
45OCIO_ADD_GPU_TEST(LogTransform, LogBase_10_legacy)

Callers 1

OCIO_ADD_GPU_TESTFunction · 0.85

Calls 5

setProcessorMethod · 0.80
setErrorThresholdMethod · 0.80
setTestInfinityMethod · 0.80
setDirectionMethod · 0.45
setBaseMethod · 0.45

Tested by

no test coverage detected