MCPcopy Create free account
hub / github.com/Exiv2/exiv2 / TEST_F

Function TEST_F

unitTests/test_slice.cpp:318–323  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

316};
317
318TEST_F(stringSlice, at) {
319 const Slice<const std::string> is_a = makeSlice(static_cast<const std::string&>(this->sentence), 5, 10);
320
321 ASSERT_EQ(is_a.at(0), 'i');
322 ASSERT_EQ(is_a.at(4), ' ');
323}
324
325TEST_F(stringSlice, atFailure) {
326 const Slice<const std::string> is_a = makeSlice(static_cast<const std::string&>(this->sentence), 5, 10);

Callers

nothing calls this directly

Calls 5

c_strMethod · 0.80
makeSliceFunction · 0.50
sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected