Archetype: cpp_component_stub_test.cpp.mustache

Table of Contents

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

Emacs 29.1 (Org mode 9.6.6)