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

Method assert_empty

dnn/test/common/small_vector.cpp:188–195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186
187 template <typename VectorT>
188 void assert_empty(VectorT& v) {
189 // Size tests
190 EXPECT_EQ(0u, v.size());
191 EXPECT_TRUE(v.empty());
192
193 // Iterator tests
194 EXPECT_TRUE(v.begin() == v.end());
195 }
196
197 // Assert that v contains the specified values, in order.
198 template <typename VectorT>

Callers 1

TYPED_TESTFunction · 0.80

Calls 4

sizeMethod · 0.45
emptyMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected