RawSpeed
fast raw decoding library
Loading...
Searching...
No Matches
rawspeed_test::anonymous_namespace{BitTest.cpp} Namespace Reference

Classes

class  PowerOfTwoTest
class  ClampBitsTest

Typedefs

using powerOfTwoType = std::tuple<int, bool>
using ClampBitsType = std::tuple<int, int, uint16_t>

Functions

 INSTANTIATE_TEST_SUITE_P (PowerOfTwoTest, PowerOfTwoTest, ::testing::ValuesIn(powerOfTwoValues))
 TEST_P (PowerOfTwoTest, PowerOfTwoTest)
 INSTANTIATE_TEST_SUITE_P (ClampBitsTest, ClampBitsTest, ::testing::ValuesIn(ClampBitsValues))
 TEST_P (ClampBitsTest, ClampBitsTest)
 TEST (ClampBitsDeathTest, Only16Bit)
 TEST (ClampBitsUnsignedDeathTest, NoNopClamps)

Variables

const powerOfTwoType powerOfTwoValues []
const ClampBitsType ClampBitsValues []

Typedef Documentation

◆ ClampBitsType

using rawspeed_test::anonymous_namespace{BitTest.cpp}::ClampBitsType = std::tuple<int, int, uint16_t>

Definition at line 67 of file BitTest.cpp.

◆ powerOfTwoType

using rawspeed_test::anonymous_namespace{BitTest.cpp}::powerOfTwoType = std::tuple<int, bool>

Definition at line 42 of file BitTest.cpp.

Function Documentation

◆ INSTANTIATE_TEST_SUITE_P() [1/2]

rawspeed_test::anonymous_namespace{BitTest.cpp}::INSTANTIATE_TEST_SUITE_P ( ClampBitsTest ,
ClampBitsTest ,
::testing::ValuesIn(ClampBitsValues)  )

References ClampBitsValues.

◆ INSTANTIATE_TEST_SUITE_P() [2/2]

rawspeed_test::anonymous_namespace{BitTest.cpp}::INSTANTIATE_TEST_SUITE_P ( PowerOfTwoTest ,
PowerOfTwoTest ,
::testing::ValuesIn(powerOfTwoValues)  )

References powerOfTwoValues.

◆ TEST() [1/2]

rawspeed_test::anonymous_namespace{BitTest.cpp}::TEST ( ClampBitsDeathTest ,
Only16Bit  )

Definition at line 114 of file BitTest.cpp.

References clampBits(), and TEST().

Referenced by TEST(), and TEST().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ TEST() [2/2]

rawspeed_test::anonymous_namespace{BitTest.cpp}::TEST ( ClampBitsUnsignedDeathTest ,
NoNopClamps  )

Definition at line 120 of file BitTest.cpp.

References clampBits(), and TEST().

Here is the call graph for this function:

◆ TEST_P() [1/2]

rawspeed_test::anonymous_namespace{BitTest.cpp}::TEST_P ( ClampBitsTest ,
ClampBitsTest  )

Definition at line 113 of file BitTest.cpp.

References clampBits().

Here is the call graph for this function:

◆ TEST_P() [2/2]

rawspeed_test::anonymous_namespace{BitTest.cpp}::TEST_P ( PowerOfTwoTest ,
PowerOfTwoTest  )

Definition at line 63 of file BitTest.cpp.

References isPowerOfTwo().

Here is the call graph for this function:

Variable Documentation

◆ ClampBitsValues

const ClampBitsType rawspeed_test::anonymous_namespace{BitTest.cpp}::ClampBitsValues[]
Initial value:
= {
make_tuple(0, 0, 0), make_tuple(0, 16, 0),
make_tuple(32, 0, 0), make_tuple(32, 16, 32),
make_tuple(32, 2, 3), make_tuple(-32, 0, 0),
make_tuple(-32, 16, 0), GENERATE()}
#define GENERATE()
Definition BitTest.cpp:101

Definition at line 106 of file BitTest.cpp.

Referenced by INSTANTIATE_TEST_SUITE_P().

◆ powerOfTwoValues

const powerOfTwoType rawspeed_test::anonymous_namespace{BitTest.cpp}::powerOfTwoValues[]
Initial value:
= {
make_tuple(0, true), make_tuple(1, true), make_tuple(2, true),
make_tuple(3, false), make_tuple(4, true), make_tuple(5, false),
make_tuple(6, false), make_tuple(7, false), make_tuple(8, true),
make_tuple(9, false), make_tuple(10, false), make_tuple(11, false),
}

Definition at line 54 of file BitTest.cpp.

Referenced by INSTANTIATE_TEST_SUITE_P().