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

Method perform_test

dlib/test/is_same_object.cpp:100–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98
99
100 void perform_test (
101 )
102 {
103 print_spinner();
104
105 int a, b;
106 double d;
107 DLIB_TEST( is_same_object(a,a) == true) ;
108 DLIB_TEST( is_same_object(a,b) == false) ;
109 DLIB_TEST( is_same_object(d,b) == false) ;
110 DLIB_TEST( is_same_object(d,d) == true) ;
111
112 base sb;
113 derived sd, sd2;
114
115 DLIB_TEST( is_same_object(sb,sd) == false) ;
116 DLIB_TEST( is_same_object(sd,sb) == false) ;
117
118 go<true>(sd, sd);
119 go<false>(sd, sd2);
120 go<true>(sb, sb);
121 go<false>(sd, sb);
122
123 go2<true>(sd, sd);
124 go2<false>(sd2, sd);
125 go2<false>(sd, sd2);
126 go2<false>(sb, sd);
127
128 test_metaprog();
129 }
130 };
131
132 // Create an instance of this object. Doing this causes this test

Callers

nothing calls this directly

Calls 3

print_spinnerFunction · 0.85
test_metaprogFunction · 0.85
is_same_objectFunction · 0.50

Tested by

no test coverage detected