MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / TEST_F

Function TEST_F

tensorflow/core/lib/core/refcount_test.cc:41–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39};
40
41TEST_F(RefTest, New) {
42 MyRef* ref = new MyRef;
43 ASSERT_EQ(1, constructed);
44 ASSERT_EQ(0, destroyed);
45 ref->Unref();
46 ASSERT_EQ(1, constructed);
47 ASSERT_EQ(1, destroyed);
48}
49
50TEST_F(RefTest, RefUnref) {
51 MyRef* ref = new MyRef;

Callers

nothing calls this directly

Calls 3

UnrefMethod · 0.45
RefMethod · 0.45
RefCountIsOneMethod · 0.45

Tested by

no test coverage detected