MCPcopy Create free account
hub / github.com/davisking/dlib / test_set_i

Function test_set_i

dlib/test/constexpr_if.cpp:180–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178 }
179
180 void test_set_i()
181 {
182 A a{1};
183 D d{1};
184 DLIB_TEST(!try_set_i(a, 2));
185 DLIB_TEST(a.i == 1);
186 DLIB_TEST(try_set_i(d, 2));
187 DLIB_TEST(d.i == 2);
188 }
189
190 class constexpr_if_test : public tester
191 {

Callers 1

perform_testMethod · 0.85

Calls 1

try_set_iFunction · 0.85

Tested by

no test coverage detected