MCPcopy Create free account
hub / github.com/Simple-XX/SimpleKernel / TEST_F

Function TEST_F

tests/unit_test/sk_unique_ptr_test.cpp:25–29  ·  view source on GitHub ↗

1. Default construction — null

Source from the content-addressed store, hash-verified

23
24// 1. Default construction — null
25TEST_F(UniquePtrTest, DefaultConstruction) {
26 kstd::unique_ptr<TestObj> p;
27 EXPECT_EQ(p.get(), nullptr);
28 EXPECT_FALSE(static_cast<bool>(p));
29}
30
31// 2. Construction from raw pointer
32TEST_F(UniquePtrTest, ConstructionFromRawPointer) {

Callers

nothing calls this directly

Calls 1

GetValueMethod · 0.45

Tested by

no test coverage detected