MCPcopy Create free account
hub / github.com/Geode-solutions/OpenGeode / test_create_vertices

Function test_create_vertices

tests/mesh/test-graph.cpp:33–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31#include <geode/tests/common.hpp>
32
33void test_create_vertices(
34 const geode::Graph& graph, geode::GraphBuilder& builder )
35{
36 builder.create_vertex();
37 geode::OpenGeodeMeshException::test(
38 graph.nb_vertices() == 1, "Graph should have 1 vertex" );
39 builder.create_vertices( 3 );
40 geode::OpenGeodeMeshException::test(
41 graph.nb_vertices() == 4, "Graph should have 4 vertices" );
42}
43
44void test_create_edges(
45 const geode::Graph& graph, geode::GraphBuilder& builder )

Callers 1

testFunction · 0.70

Calls 4

create_vertexMethod · 0.80
create_verticesMethod · 0.80
testFunction · 0.70
nb_verticesMethod · 0.45

Tested by

no test coverage detected