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

Classes

class  PointTest
class  HasPositiveAreaTest
class  AreaTest
class  OperatorsTest
class  SmallestTest

Typedefs

using IntPair = pair<int, int>
using Six = std::tuple<IntPair, IntPair, IntPair>
using hasPositiveAreaType = std::tuple<int, int>
using areaType = tuple<IntPair, iPoint2D::area_type>
using operatorsType

Functions

 TEST (PointTest, Constructor)
 TEST (PointTest, AssignmentConstructor)
 TEST (PointTest, EqualityOperator)
 TEST (PointTest, NonEqualityOperator)
 INSTANTIATE_TEST_SUITE_P (SumTest, PointTest, ::testing::ValuesIn(valueSum))
 TEST_P (PointTest, InPlaceAddTest1)
 TEST_P (PointTest, InPlaceAddTest2)
 TEST_P (PointTest, AddTest1)
 TEST_P (PointTest, AddTest2)
 TEST_P (PointTest, InPlaceSubTest1)
 TEST_P (PointTest, InPlaceSubTest2)
 TEST_P (PointTest, SubTest1)
 TEST_P (PointTest, SubTest2)
 INSTANTIATE_TEST_SUITE_P (HasPositiveAreaTest, HasPositiveAreaTest, ::testing::Combine(::testing::Range(-2, 3), ::testing::Range(-2, 3)))
 TEST_P (HasPositiveAreaTest, HasPositiveAreaTest)
 INSTANTIATE_TEST_SUITE_P (AreaTest, AreaTest, ::testing::ValuesIn(valueArea))
 TEST_P (AreaTest, AreaTest)
 INSTANTIATE_TEST_SUITE_P (OperatorsTests, OperatorsTest, ::testing::ValuesIn(operatorsValues))
 TEST_P (OperatorsTest, OperatorEQTest)
 TEST_P (OperatorsTest, OperatorNETest)
 TEST_P (OperatorsTest, OperatorLTTest)
 TEST_P (OperatorsTest, OperatorGTest)
 TEST_P (OperatorsTest, OperatorLETest)
 TEST_P (OperatorsTest, OperatorGEest)
 TEST_P (OperatorsTest, OperatorsTest)
 INSTANTIATE_TEST_SUITE_P (GetSmallestTest, SmallestTest, ::testing::ValuesIn(smallestValues))
 TEST_P (SmallestTest, GetSmallestTest)

Variables

constexpr iPoint2D::area_type maxVal
constexpr iPoint2D::area_type minVal
constexpr iPoint2D::area_type absMinVal = -minVal
constexpr iPoint2D::area_type maxAreaVal = maxVal * maxVal
constexpr iPoint2D::area_type minAreaVal = absMinVal * absMinVal
constexpr iPoint2D::area_type mixAreaVal = maxVal * absMinVal
const Six valueSum []
const iPoint2D PositiveAreaData []
const areaType valueArea []
const operatorsType operatorsValues []
const Six smallestValues []

Typedef Documentation

◆ areaType

using rawspeed_test::anonymous_namespace{PointTest.cpp}::areaType = tuple<IntPair, iPoint2D::area_type>

Definition at line 358 of file PointTest.cpp.

◆ hasPositiveAreaType

using rawspeed_test::anonymous_namespace{PointTest.cpp}::hasPositiveAreaType = std::tuple<int, int>

Definition at line 327 of file PointTest.cpp.

◆ IntPair

using rawspeed_test::anonymous_namespace{PointTest.cpp}::IntPair = pair<int, int>

Definition at line 152 of file PointTest.cpp.

◆ operatorsType

using rawspeed_test::anonymous_namespace{PointTest.cpp}::operatorsType
Initial value:
std::tuple<IntPair, IntPair, bool, bool, bool, bool, bool>

Definition at line 426 of file PointTest.cpp.

◆ Six

using rawspeed_test::anonymous_namespace{PointTest.cpp}::Six = std::tuple<IntPair, IntPair, IntPair>

Definition at line 153 of file PointTest.cpp.

Function Documentation

◆ INSTANTIATE_TEST_SUITE_P() [1/5]

rawspeed_test::anonymous_namespace{PointTest.cpp}::INSTANTIATE_TEST_SUITE_P ( AreaTest ,
AreaTest ,
::testing::ValuesIn(valueArea)  )

References valueArea.

◆ INSTANTIATE_TEST_SUITE_P() [2/5]

rawspeed_test::anonymous_namespace{PointTest.cpp}::INSTANTIATE_TEST_SUITE_P ( GetSmallestTest ,
SmallestTest ,
::testing::ValuesIn(smallestValues)  )

References smallestValues.

◆ INSTANTIATE_TEST_SUITE_P() [3/5]

rawspeed_test::anonymous_namespace{PointTest.cpp}::INSTANTIATE_TEST_SUITE_P ( HasPositiveAreaTest ,
HasPositiveAreaTest ,
::testing::Combine(::testing::Range(-2, 3), ::testing::Range(-2, 3))  )

◆ INSTANTIATE_TEST_SUITE_P() [4/5]

rawspeed_test::anonymous_namespace{PointTest.cpp}::INSTANTIATE_TEST_SUITE_P ( OperatorsTests ,
OperatorsTest ,
::testing::ValuesIn(operatorsValues)  )

References operatorsValues.

◆ INSTANTIATE_TEST_SUITE_P() [5/5]

rawspeed_test::anonymous_namespace{PointTest.cpp}::INSTANTIATE_TEST_SUITE_P ( SumTest ,
PointTest ,
::testing::ValuesIn(valueSum)  )

References valueSum.

◆ TEST() [1/4]

rawspeed_test::anonymous_namespace{PointTest.cpp}::TEST ( PointTest ,
AssignmentConstructor  )

Definition at line 97 of file PointTest.cpp.

References TEST(), rawspeed::iPoint2D::x, x, rawspeed::iPoint2D::y, and y.

Here is the call graph for this function:

◆ TEST() [2/4]

rawspeed_test::anonymous_namespace{PointTest.cpp}::TEST ( PointTest ,
Constructor  )

Definition at line 59 of file PointTest.cpp.

References TEST(), rawspeed::iPoint2D::x, x, rawspeed::iPoint2D::y, and y.

Referenced by TEST(), TEST(), TEST(), and TEST().

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

◆ TEST() [3/4]

rawspeed_test::anonymous_namespace{PointTest.cpp}::TEST ( PointTest ,
EqualityOperator  )

Definition at line 129 of file PointTest.cpp.

References TEST().

Here is the call graph for this function:

◆ TEST() [4/4]

rawspeed_test::anonymous_namespace{PointTest.cpp}::TEST ( PointTest ,
NonEqualityOperator  )

Definition at line 138 of file PointTest.cpp.

References TEST().

Here is the call graph for this function:

◆ TEST_P() [1/18]

rawspeed_test::anonymous_namespace{PointTest.cpp}::TEST_P ( AreaTest ,
AreaTest  )

Definition at line 422 of file PointTest.cpp.

◆ TEST_P() [2/18]

rawspeed_test::anonymous_namespace{PointTest.cpp}::TEST_P ( HasPositiveAreaTest ,
HasPositiveAreaTest  )

Definition at line 348 of file PointTest.cpp.

References PositiveAreaData.

◆ TEST_P() [3/18]

rawspeed_test::anonymous_namespace{PointTest.cpp}::TEST_P ( OperatorsTest ,
OperatorEQTest  )

Definition at line 676 of file PointTest.cpp.

◆ TEST_P() [4/18]

rawspeed_test::anonymous_namespace{PointTest.cpp}::TEST_P ( OperatorsTest ,
OperatorGEest  )

Definition at line 698 of file PointTest.cpp.

◆ TEST_P() [5/18]

rawspeed_test::anonymous_namespace{PointTest.cpp}::TEST_P ( OperatorsTest ,
OperatorGTest  )

Definition at line 689 of file PointTest.cpp.

◆ TEST_P() [6/18]

rawspeed_test::anonymous_namespace{PointTest.cpp}::TEST_P ( OperatorsTest ,
OperatorLETest  )

Definition at line 694 of file PointTest.cpp.

◆ TEST_P() [7/18]

rawspeed_test::anonymous_namespace{PointTest.cpp}::TEST_P ( OperatorsTest ,
OperatorLTTest  )

Definition at line 685 of file PointTest.cpp.

◆ TEST_P() [8/18]

rawspeed_test::anonymous_namespace{PointTest.cpp}::TEST_P ( OperatorsTest ,
OperatorNETest  )

Definition at line 680 of file PointTest.cpp.

◆ TEST_P() [9/18]

rawspeed_test::anonymous_namespace{PointTest.cpp}::TEST_P ( OperatorsTest ,
OperatorsTest  )

Definition at line 703 of file PointTest.cpp.

◆ TEST_P() [10/18]

rawspeed_test::anonymous_namespace{PointTest.cpp}::TEST_P ( PointTest ,
AddTest1  )

Definition at line 289 of file PointTest.cpp.

◆ TEST_P() [11/18]

rawspeed_test::anonymous_namespace{PointTest.cpp}::TEST_P ( PointTest ,
AddTest2  )

Definition at line 295 of file PointTest.cpp.

◆ TEST_P() [12/18]

rawspeed_test::anonymous_namespace{PointTest.cpp}::TEST_P ( PointTest ,
InPlaceAddTest1  )

Definition at line 277 of file PointTest.cpp.

◆ TEST_P() [13/18]

rawspeed_test::anonymous_namespace{PointTest.cpp}::TEST_P ( PointTest ,
InPlaceAddTest2  )

Definition at line 283 of file PointTest.cpp.

◆ TEST_P() [14/18]

rawspeed_test::anonymous_namespace{PointTest.cpp}::TEST_P ( PointTest ,
InPlaceSubTest1  )

Definition at line 302 of file PointTest.cpp.

◆ TEST_P() [15/18]

rawspeed_test::anonymous_namespace{PointTest.cpp}::TEST_P ( PointTest ,
InPlaceSubTest2  )

Definition at line 308 of file PointTest.cpp.

◆ TEST_P() [16/18]

rawspeed_test::anonymous_namespace{PointTest.cpp}::TEST_P ( PointTest ,
SubTest1  )

Definition at line 314 of file PointTest.cpp.

◆ TEST_P() [17/18]

rawspeed_test::anonymous_namespace{PointTest.cpp}::TEST_P ( PointTest ,
SubTest2  )

Definition at line 320 of file PointTest.cpp.

◆ TEST_P() [18/18]

rawspeed_test::anonymous_namespace{PointTest.cpp}::TEST_P ( SmallestTest ,
GetSmallestTest  )

Definition at line 812 of file PointTest.cpp.

Variable Documentation

◆ absMinVal

iPoint2D::area_type rawspeed_test::anonymous_namespace{PointTest.cpp}::absMinVal = -minVal
constexpr

Definition at line 54 of file PointTest.cpp.

◆ maxAreaVal

iPoint2D::area_type rawspeed_test::anonymous_namespace{PointTest.cpp}::maxAreaVal = maxVal * maxVal
constexpr

Definition at line 55 of file PointTest.cpp.

◆ maxVal

iPoint2D::area_type rawspeed_test::anonymous_namespace{PointTest.cpp}::maxVal
constexpr
Initial value:
=
numeric_limits<iPoint2D::value_type>::max()

Definition at line 50 of file PointTest.cpp.

◆ minAreaVal

iPoint2D::area_type rawspeed_test::anonymous_namespace{PointTest.cpp}::minAreaVal = absMinVal * absMinVal
constexpr

Definition at line 56 of file PointTest.cpp.

◆ minVal

iPoint2D::area_type rawspeed_test::anonymous_namespace{PointTest.cpp}::minVal
constexpr
Initial value:
=
numeric_limits<iPoint2D::value_type>::min()

Definition at line 52 of file PointTest.cpp.

◆ mixAreaVal

iPoint2D::area_type rawspeed_test::anonymous_namespace{PointTest.cpp}::mixAreaVal = maxVal * absMinVal
constexpr

Definition at line 57 of file PointTest.cpp.

◆ operatorsValues

const operatorsType rawspeed_test::anonymous_namespace{PointTest.cpp}::operatorsValues[]

Definition at line 509 of file PointTest.cpp.

Referenced by INSTANTIATE_TEST_SUITE_P().

◆ PositiveAreaData

const iPoint2D rawspeed_test::anonymous_namespace{PointTest.cpp}::PositiveAreaData[]
Initial value:
= {
{1, 1},
{1, 2},
{2, 1},
{2, 2},
}

Definition at line 342 of file PointTest.cpp.

Referenced by TEST_P().

◆ smallestValues

const Six rawspeed_test::anonymous_namespace{PointTest.cpp}::smallestValues[]

Definition at line 724 of file PointTest.cpp.

Referenced by INSTANTIATE_TEST_SUITE_P().

◆ valueArea

const areaType rawspeed_test::anonymous_namespace{PointTest.cpp}::valueArea[]

Definition at line 390 of file PointTest.cpp.

Referenced by INSTANTIATE_TEST_SUITE_P().

◆ valueSum

const Six rawspeed_test::anonymous_namespace{PointTest.cpp}::valueSum[]

Definition at line 192 of file PointTest.cpp.

Referenced by INSTANTIATE_TEST_SUITE_P().