MCPcopy Create free account
hub / github.com/ETLCPP/etl / TEST

Function TEST

test/test_not_null_pointer_constexpr.cpp:72–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70 {
71 //*************************************************************************
72 TEST(test_construct_from_non_null_pointer)
73 {
74 static constexpr const int value = 123;
75 static constexpr etl::not_null<const int*> nn(&value);
76 static constexpr const int* p = nn.get();
77 static constexpr const int v = *nn;
78 CHECK_EQUAL(&value, p);
79 CHECK_EQUAL(123, v);
80 }
81
82 //*************************************************************************
83 TEST(test_copy_construct)

Callers

nothing calls this directly

Calls 3

getMethod · 0.45

Tested by

no test coverage detected