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

Method TestAt

util/generic/deque_ut.cpp:179–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177}
178
179void TDequeTest::TestAt() {
180 TDeque<int> d;
181 TDeque<int> const& cd = d;
182
183 d.push_back(10);
184 UNIT_ASSERT(d.at(0) == 10);
185 d.at(0) = 20;
186 UNIT_ASSERT(cd.at(0) == 20);
187 UNIT_ASSERT_EXCEPTION(d.at(1) = 20, std::out_of_range);
188}
189
190void TDequeTest::TestAutoRef() {
191 int i;

Callers

nothing calls this directly

Calls 2

push_backMethod · 0.45
atMethod · 0.45

Tested by

no test coverage detected