22
33#include < catch2/catch_test_macros.hpp>
44
5- TEST_CASE (" default constructor" , " [construction ]" ) {
5+ TEST_CASE (" owner default constructor" , " [owner_construction ]" ) {
66 {
77 test_ptr ptr{};
88 REQUIRE (instances == 0 );
@@ -13,7 +13,7 @@ TEST_CASE("default constructor", "[construction]") {
1313 REQUIRE (instances == 0 );
1414}
1515
16- TEST_CASE (" default constructor with deleter" , " [construction ]" ) {
16+ TEST_CASE (" owner default constructor with deleter" , " [owner_construction ]" ) {
1717 {
1818 test_ptr_with_deleter ptr{};
1919 REQUIRE (instances == 0 );
@@ -27,7 +27,7 @@ TEST_CASE("default constructor with deleter", "[construction]") {
2727 REQUIRE (instances_deleter == 0 );
2828}
2929
30- TEST_CASE (" nullptr constructor" , " [construction ]" ) {
30+ TEST_CASE (" owner nullptr constructor" , " [owner_construction ]" ) {
3131 {
3232 test_ptr ptr{nullptr };
3333 REQUIRE (instances == 0 );
@@ -38,7 +38,7 @@ TEST_CASE("nullptr constructor", "[construction]") {
3838 REQUIRE (instances == 0 );
3939}
4040
41- TEST_CASE (" nullptr constructor with deleter" , " [construction ]" ) {
41+ TEST_CASE (" owner nullptr constructor with deleter" , " [owner_construction ]" ) {
4242 {
4343 test_ptr_with_deleter ptr{nullptr , test_deleter{42 }};
4444 REQUIRE (instances == 0 );
@@ -52,7 +52,7 @@ TEST_CASE("nullptr constructor with deleter", "[construction]") {
5252 REQUIRE (instances_deleter == 0 );
5353}
5454
55- TEST_CASE (" move constructor" , " [construction ]" ) {
55+ TEST_CASE (" owner move constructor" , " [owner_construction ]" ) {
5656 {
5757 test_ptr ptr_orig (new test_object);
5858 {
@@ -68,7 +68,7 @@ TEST_CASE("move constructor", "[construction]") {
6868 REQUIRE (instances == 0 );
6969}
7070
71- TEST_CASE (" move constructor with deleter" , " [construction ]" ) {
71+ TEST_CASE (" owner move constructor with deleter" , " [owner_construction ]" ) {
7272 {
7373 test_ptr_with_deleter ptr_orig (new test_object, test_deleter{42 });
7474 {
@@ -88,7 +88,7 @@ TEST_CASE("move constructor with deleter", "[construction]") {
8888 REQUIRE (instances_deleter == 0 );
8989}
9090
91- TEST_CASE (" acquiring constructor" , " [construction ]" ) {
91+ TEST_CASE (" owner acquiring constructor" , " [owner_construction ]" ) {
9292 {
9393 test_ptr ptr{new test_object};
9494 REQUIRE (instances == 1 );
@@ -99,7 +99,7 @@ TEST_CASE("acquiring constructor", "[construction]") {
9999 REQUIRE (instances == 0 );
100100}
101101
102- TEST_CASE (" acquiring constructor with deleter" , " [construction ]" ) {
102+ TEST_CASE (" owner acquiring constructor with deleter" , " [owner_construction ]" ) {
103103 {
104104 test_ptr_with_deleter ptr{new test_object, test_deleter{42 }};
105105 REQUIRE (instances == 1 );
@@ -113,7 +113,7 @@ TEST_CASE("acquiring constructor with deleter", "[construction]") {
113113 REQUIRE (instances_deleter == 0 );
114114}
115115
116- TEST_CASE (" implicit conversion constructor" , " [construction ]" ) {
116+ TEST_CASE (" owner implicit conversion constructor" , " [owner_construction ]" ) {
117117 {
118118 test_ptr_derived ptr_orig{new test_object_derived};
119119 {
@@ -132,7 +132,7 @@ TEST_CASE("implicit conversion constructor", "[construction]") {
132132 REQUIRE (instances_derived == 0 );
133133}
134134
135- TEST_CASE (" implicit conversion constructor with deleter" , " [construction ]" ) {
135+ TEST_CASE (" owner implicit conversion constructor with deleter" , " [owner_construction ]" ) {
136136 {
137137 test_ptr_derived_with_deleter ptr_orig{new test_object_derived, test_deleter{42 }};
138138 {
@@ -155,7 +155,7 @@ TEST_CASE("implicit conversion constructor with deleter", "[construction]") {
155155 REQUIRE (instances_deleter == 0 );
156156}
157157
158- TEST_CASE (" explicit conversion constructor" , " [construction ]" ) {
158+ TEST_CASE (" owner explicit conversion constructor" , " [owner_construction ]" ) {
159159 {
160160 test_ptr ptr_orig{new test_object_derived};
161161 {
@@ -175,7 +175,7 @@ TEST_CASE("explicit conversion constructor", "[construction]") {
175175 REQUIRE (instances_derived == 0 );
176176}
177177
178- TEST_CASE (" explicit conversion constructor with deleter" , " [construction ]" ) {
178+ TEST_CASE (" owner explicit conversion constructor with deleter" , " [owner_construction ]" ) {
179179 {
180180 test_ptr_with_deleter ptr_orig{new test_object_derived, test_deleter{42 }};
181181 {
@@ -199,7 +199,7 @@ TEST_CASE("explicit conversion constructor with deleter", "[construction]") {
199199 REQUIRE (instances_deleter == 0 );
200200}
201201
202- TEST_CASE (" move assignment operator" , " [assignment ]" ) {
202+ TEST_CASE (" owner move assignment operator" , " [owner_assignment ]" ) {
203203 {
204204 test_ptr ptr_orig (new test_object);
205205 {
@@ -216,7 +216,7 @@ TEST_CASE("move assignment operator", "[assignment]") {
216216 REQUIRE (instances == 0 );
217217}
218218
219- TEST_CASE (" move assignment operator with deleter" , " [assignment ]" ) {
219+ TEST_CASE (" owner move assignment operator with deleter" , " [owner_assignment ]" ) {
220220 {
221221 test_ptr_with_deleter ptr_orig (new test_object, test_deleter{42 });
222222 {
@@ -237,7 +237,7 @@ TEST_CASE("move assignment operator with deleter", "[assignment]") {
237237 REQUIRE (instances_deleter == 0 );
238238}
239239
240- TEST_CASE (" reset to null" , " [utility ]" ) {
240+ TEST_CASE (" owner reset to null" , " [owner_utility ]" ) {
241241 {
242242 test_ptr ptr (new test_object);
243243 ptr.reset ();
@@ -249,7 +249,7 @@ TEST_CASE("reset to null", "[utility]") {
249249 REQUIRE (instances == 0 );
250250}
251251
252- TEST_CASE (" reset to null with deleter" , " [utility ]" ) {
252+ TEST_CASE (" owner reset to null with deleter" , " [owner_utility ]" ) {
253253 {
254254 test_ptr_with_deleter ptr (new test_object, test_deleter{42 });
255255 ptr.reset ();
@@ -264,7 +264,7 @@ TEST_CASE("reset to null with deleter", "[utility]") {
264264 REQUIRE (instances_deleter == 0 );
265265}
266266
267- TEST_CASE (" reset to new" , " [utility ]" ) {
267+ TEST_CASE (" owner reset to new" , " [owner_utility ]" ) {
268268 {
269269 test_ptr ptr (new test_object);
270270 ptr.reset (new test_object);
@@ -276,7 +276,7 @@ TEST_CASE("reset to new", "[utility]") {
276276 REQUIRE (instances == 0 );
277277}
278278
279- TEST_CASE (" reset to new with deleter" , " [utility ]" ) {
279+ TEST_CASE (" owner reset to new with deleter" , " [owner_utility ]" ) {
280280 {
281281 test_ptr_with_deleter ptr (new test_object, test_deleter{42 });
282282 ptr.reset (new test_object);
@@ -291,7 +291,7 @@ TEST_CASE("reset to new with deleter", "[utility]") {
291291 REQUIRE (instances_deleter == 0 );
292292}
293293
294- TEST_CASE (" reset to new with new deleter" , " [utility ]" ) {
294+ TEST_CASE (" owner reset to new with new deleter" , " [owner_utility ]" ) {
295295 {
296296 test_ptr_with_deleter ptr (new test_object, test_deleter{42 });
297297 ptr.reset (new test_object, test_deleter{43 });
@@ -306,7 +306,7 @@ TEST_CASE("reset to new with new deleter", "[utility]") {
306306 REQUIRE (instances_deleter == 0 );
307307}
308308
309- TEST_CASE (" swap no instance" , " [utility ]" ) {
309+ TEST_CASE (" owner swap no instance" , " [owner_utility ]" ) {
310310 {
311311 test_ptr ptr_orig;
312312 test_ptr ptr;
@@ -319,7 +319,7 @@ TEST_CASE("swap no instance", "[utility]") {
319319 REQUIRE (instances == 0 );
320320}
321321
322- TEST_CASE (" swap no instance with deleter" , " [utility ]" ) {
322+ TEST_CASE (" owner swap no instance with deleter" , " [owner_utility ]" ) {
323323 {
324324 test_ptr_with_deleter ptr_orig (nullptr , test_deleter{42 });
325325 test_ptr_with_deleter ptr (nullptr , test_deleter{43 });
@@ -338,7 +338,7 @@ TEST_CASE("swap no instance with deleter", "[utility]") {
338338 REQUIRE (instances_deleter == 0 );
339339}
340340
341- TEST_CASE (" swap one instance" , " [utility ]" ) {
341+ TEST_CASE (" owner swap one instance" , " [owner_utility ]" ) {
342342 {
343343 test_ptr ptr_orig (new test_object);
344344 test_ptr ptr;
@@ -351,7 +351,7 @@ TEST_CASE("swap one instance", "[utility]") {
351351 REQUIRE (instances == 0 );
352352}
353353
354- TEST_CASE (" swap one instance with deleter" , " [utility ]" ) {
354+ TEST_CASE (" owner swap one instance with deleter" , " [owner_utility ]" ) {
355355 {
356356 test_ptr_with_deleter ptr_orig (new test_object, test_deleter{42 });
357357 test_ptr_with_deleter ptr (nullptr , test_deleter{43 });
@@ -370,7 +370,7 @@ TEST_CASE("swap one instance with deleter", "[utility]") {
370370 REQUIRE (instances_deleter == 0 );
371371}
372372
373- TEST_CASE (" swap two instances" , " [utility ]" ) {
373+ TEST_CASE (" owner swap two instances" , " [owner_utility ]" ) {
374374 {
375375 test_ptr ptr_orig (new test_object);
376376 test_object* ptr_orig_raw = ptr_orig.get ();
@@ -385,7 +385,7 @@ TEST_CASE("swap two instances", "[utility]") {
385385 REQUIRE (instances == 0 );
386386}
387387
388- TEST_CASE (" swap two instances with deleter" , " [utility ]" ) {
388+ TEST_CASE (" owner swap two instances with deleter" , " [owner_utility ]" ) {
389389 {
390390 test_ptr_with_deleter ptr_orig (new test_object, test_deleter{42 });
391391 test_object* ptr_orig_raw = ptr_orig.get ();
0 commit comments