| 74 | } |
| 75 | |
| 76 | UTEST_F(IntersectionType, defaultValue) |
| 77 | { |
| 78 | McSize bytes = 0; |
| 79 | |
| 80 | ASSERT_EQ(mcGetInfo(utest_fixture->context, MC_CONTEXT_DISPATCH_INTERSECTION_TYPE, 0, NULL, &bytes), MC_NO_ERROR); |
| 81 | |
| 82 | ASSERT_EQ(bytes, sizeof(McDispatchIntersectionType)); |
| 83 | |
| 84 | McDispatchIntersectionType value = (McDispatchIntersectionType)0; |
| 85 | ASSERT_EQ(mcGetInfo(utest_fixture->context, MC_CONTEXT_DISPATCH_INTERSECTION_TYPE, bytes, &value, 0), MC_NO_ERROR); |
| 86 | |
| 87 | // we have not yet called the dispatch function to the value should be undefined i.e. MC_DISPATCH_INTERSECTION_TYPE_MAX_ENUM |
| 88 | ASSERT_EQ(value, McDispatchIntersectionType::MC_DISPATCH_INTERSECTION_TYPE_MAX_ENUM); |
| 89 | } |
| 90 | |
| 91 | Mesh makeCube(McDouble halfExtent, McDouble translX, McDouble translY, McDouble translZ) |
| 92 | { |
nothing calls this directly
no test coverage detected