MCPcopy Create free account
hub / github.com/dmlc/dmlc-core / ArrayViewTest

Function ArrayViewTest

test/unittest/unittest_array_view.cc:5–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3#include <dmlc/array_view.h>
4
5void ArrayViewTest(dmlc::array_view<int> view, int base) {
6 int cnt = base;
7 for (int v : view) {
8 CHECK_EQ(v, cnt);
9 ++cnt;
10 }
11}
12
13TEST(ArrayView, Basic) {
14 std::vector<int> vec{0, 1, 2};

Callers 1

TESTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected