MCPcopy Create free account
hub / github.com/cvanaret/Uno / TEST

Function TEST

unotest/unit_tests/VectorViewTests.cpp:9–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7using namespace uno;
8
9TEST(VectorView, Size) {
10 const std::vector<double> x{1., 2., 3., 100., 200., 300.};
11 // vector view
12 const size_t start_index = 2;
13 const size_t end_index = 5;
14 const auto x_view = view(x, start_index, end_index);
15 ASSERT_EQ(x_view.size(), end_index - start_index);
16}

Callers

nothing calls this directly

Calls 2

viewFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected