MCPcopy Create free account
hub / github.com/PyMesh/PyMesh / TEST_F

Function TEST_F

tests/src/IO/MSHParserTest.h:21–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19};
20
21TEST_F(MSHParserTest, ParseCube) {
22 std::string mesh_file = m_data_dir + "cube.msh";
23 parse(mesh_file);
24 ASSERT_EQ(8, m_parser->num_vertices());
25 ASSERT_EQ(12, m_parser->num_faces());
26 ASSERT_EQ(6, m_parser->num_voxels());
27 ASSERT_EQ(4, m_parser->vertex_per_voxel());
28 ASSERT_EQ(3, m_parser->vertex_per_face());
29 ASSERT_EQ(3, m_parser->dim());
30}
31
32TEST_F(MSHParserTest, ParseTet) {
33 std::string mesh_file = m_data_dir + "tet.msh";

Callers

nothing calls this directly

Calls 7

num_verticesMethod · 0.45
num_facesMethod · 0.45
num_voxelsMethod · 0.45
vertex_per_voxelMethod · 0.45
vertex_per_faceMethod · 0.45
dimMethod · 0.45
export_verticesMethod · 0.45

Tested by

no test coverage detected