Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
5
void 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
13
TEST(ArrayView, Basic) {
14
std::vector<int> vec{0, 1, 2};
Callers
1
TEST
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected