MCPcopy Create free account
hub / github.com/davisking/dlib / test_parallel_for

Function test_parallel_for

dlib/test/parallel_for.cpp:40–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38 };
39
40 void test_parallel_for(long start)
41 {
42 std::vector<int> vect(200,0);
43
44 parallel_for(4, start, vect.size(), assign_element(vect));
45
46 for (long i = 0; i < start; ++i)
47 {
48 DLIB_TEST(vect[i] == 0);
49 }
50 for (long i = start; i < (long)vect.size(); ++i)
51 {
52 DLIB_TEST(vect[i] == i);
53 }
54 }
55
56 void test_parallel_for2(long start)
57 {

Callers 1

perform_testMethod · 0.85

Calls 3

parallel_forFunction · 0.85
assign_elementClass · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected