MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / TEST

Function TEST

dnn/test/common/small_vector.cpp:886–892  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

884};
885
886TEST(SmallVectorCustomTest, NoAssignTest) {
887 int x = 0;
888 SmallVector<NotAssignable, 2> vec;
889 vec.push_back(NotAssignable(x));
890 x = 42;
891 EXPECT_EQ(42, vec.pop_back_val().x);
892}
893
894struct MovedFrom {
895 bool has_value;

Callers

nothing calls this directly

Calls 15

NotAssignableClass · 0.85
MovedFromClass · 0.85
equalFunction · 0.85
swapFunction · 0.85
pop_back_valMethod · 0.80
emplace_backMethod · 0.80
backMethod · 0.80
assignMethod · 0.80
resizeMethod · 0.80
findFunction · 0.50
runFunction · 0.50
push_backMethod · 0.45

Tested by

no test coverage detected