MCPcopy Create free account
hub / github.com/apache/fory / TEST

Function TEST

cpp/fory/serialization/weak_ptr_serializer_test.cc:47–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45// ============================================================================
46
47TEST(SharedWeakTest, DefaultConstructor) {
48 SharedWeak<int32_t> weak;
49 EXPECT_TRUE(weak.expired());
50 EXPECT_EQ(weak.upgrade(), nullptr);
51 EXPECT_EQ(weak.use_count(), 0);
52}
53
54TEST(SharedWeakTest, FromSharedPtr) {
55 auto strong = std::make_shared<int32_t>(42);

Callers

nothing calls this directly

Calls 15

expiredMethod · 0.80
use_countMethod · 0.80
owner_equalsMethod · 0.80
findMethod · 0.80
create_serializerFunction · 0.70
updateMethod · 0.65
serializeMethod · 0.65
errorMethod · 0.65
valueMethod · 0.65
upgradeMethod · 0.45
okMethod · 0.45
to_stringMethod · 0.45

Tested by

no test coverage detected