proxygen
UnitTest.cpp File Reference

Go to the source code of this file.

Functions

 TEST (Unit, operatorEq)
 
 TEST (Unit, operatorNe)
 
 TEST (Unit, liftInt)
 
 TEST (Unit, liftUnit)
 
 TEST (Unit, liftVoid)
 
 TEST (Unit, dropInt)
 
 TEST (Unit, dropUnit)
 
 TEST (Unit, dropVoid)
 

Function Documentation

TEST ( Unit  ,
operatorEq   
)

Definition at line 23 of file UnitTest.cpp.

References EXPECT_TRUE.

23  {
24  EXPECT_TRUE(Unit{} == Unit{});
25 }
#define EXPECT_TRUE(condition)
Definition: gtest.h:1859
TEST ( Unit  ,
operatorNe   
)

Definition at line 27 of file UnitTest.cpp.

References EXPECT_FALSE.

27  {
28  EXPECT_FALSE(Unit{} != Unit{});
29 }
#define EXPECT_FALSE(condition)
Definition: gtest.h:1862
TEST ( Unit  ,
liftInt   
)

Definition at line 31 of file UnitTest.cpp.

References EXPECT_TRUE, and value.

31  {
32  using lifted = lift_unit_t<int>;
33  using actual = std::is_same<int, lifted>;
35 }
typename lift_unit< T >::type lift_unit_t
Definition: Unit.h:56
static const char *const value
Definition: Conv.cpp:50
#define EXPECT_TRUE(condition)
Definition: gtest.h:1859
TEST ( Unit  ,
liftUnit   
)

Definition at line 37 of file UnitTest.cpp.

References EXPECT_TRUE, and value.

37  {
38  using lifted = lift_unit_t<Unit>;
39  using actual = std::is_same<Unit, lifted>;
41 }
typename lift_unit< T >::type lift_unit_t
Definition: Unit.h:56
static const char *const value
Definition: Conv.cpp:50
#define EXPECT_TRUE(condition)
Definition: gtest.h:1859
TEST ( Unit  ,
liftVoid   
)

Definition at line 43 of file UnitTest.cpp.

References EXPECT_TRUE, and value.

43  {
44  using lifted = lift_unit_t<void>;
45  using actual = std::is_same<Unit, lifted>;
47 }
typename lift_unit< T >::type lift_unit_t
Definition: Unit.h:56
static const char *const value
Definition: Conv.cpp:50
#define EXPECT_TRUE(condition)
Definition: gtest.h:1859
TEST ( Unit  ,
dropInt   
)

Definition at line 49 of file UnitTest.cpp.

References EXPECT_TRUE, and value.

49  {
50  using dropped = drop_unit_t<int>;
51  using actual = std::is_same<int, dropped>;
53 }
typename drop_unit< T >::type drop_unit_t
Definition: Unit.h:67
static const char *const value
Definition: Conv.cpp:50
#define EXPECT_TRUE(condition)
Definition: gtest.h:1859
TEST ( Unit  ,
dropUnit   
)

Definition at line 55 of file UnitTest.cpp.

References EXPECT_TRUE, and value.

55  {
56  using dropped = drop_unit_t<Unit>;
57  using actual = std::is_same<void, dropped>;
59 }
typename drop_unit< T >::type drop_unit_t
Definition: Unit.h:67
static const char *const value
Definition: Conv.cpp:50
#define EXPECT_TRUE(condition)
Definition: gtest.h:1859
TEST ( Unit  ,
dropVoid   
)

Definition at line 61 of file UnitTest.cpp.

References EXPECT_TRUE, and value.

61  {
62  using dropped = drop_unit_t<void>;
63  using actual = std::is_same<void, dropped>;
65 }
typename drop_unit< T >::type drop_unit_t
Definition: Unit.h:67
static const char *const value
Definition: Conv.cpp:50
#define EXPECT_TRUE(condition)
Definition: gtest.h:1859