MCPcopy Create free account
hub / github.com/catboost/catboost / TestAt

Method TestAt

util/generic/vector_ut.cpp:328–338  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

326 }
327
328 void TestAt() {
329 TVector<int> v;
330 TVector<int> const& cv = v;
331
332 v.push_back(10);
333 UNIT_ASSERT(v.at(0) == 10);
334 v.at(0) = 20;
335 UNIT_ASSERT(cv.at(0) == 20);
336
337 UNIT_ASSERT_EXCEPTION(v.at(1) = 20, std::out_of_range);
338 }
339
340 void TestPointer() {
341 TVector<int*> v1;

Callers

nothing calls this directly

Calls 2

push_backMethod · 0.45
atMethod · 0.45

Tested by

no test coverage detected