Archetype: cpp_component_stub_test.cpp.mustache
Placeholder Catch2 test so the tests target runs.
See the Template variable reference for the complete list of available variables and their semantics.
Template
The full template source. Edit here and re-tangle with
compass build --direct tangle_codegen_templates to regenerate
library/templates/cpp_component_stub_test.cpp.mustache.
{{! GENERATED FILE — tangled from projects/ores.codegen/library/templates/cpp_component.org. Edit the org source. }}
{{{cpp_license}}}
{{#component}}
#include "{{full_name}}/domain/stub.hpp"
#include <catch2/catch_test_macros.hpp>
namespace {
const std::string tags("[domain]");
}
using namespace {{namespace}}::domain;
TEST_CASE("create_stub", tags) {
REQUIRE(stub_function() == "STUB code to be removed");
}
{{/component}}
See also
- Parent facet: C++ component templates
- Template variable reference