MCPcopy Create free account
hub / github.com/cutdigital/mcut / UTEST_F

Function UTEST_F

tests/source/intersectionType.cpp:76–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76UTEST_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
91Mesh makeCube(McDouble halfExtent, McDouble translX, McDouble translY, McDouble translZ)
92{

Callers

nothing calls this directly

Calls 5

mcGetInfoFunction · 0.85
makeCubeFunction · 0.85
mcDispatchFunction · 0.85
makeQuad_xzFunction · 0.85
makeQuad_xyFunction · 0.85

Tested by

no test coverage detected