Skip to content

Commit

Permalink
Add instanciation test for PluginProxy
Browse files Browse the repository at this point in the history
  • Loading branch information
Trinitou committed Feb 9, 2024
1 parent 27b5adc commit cc28860
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/create-an-actual-host.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

#include "clap/helpers/host.hh"
#include "clap/helpers/host.hxx"
#include "clap/helpers/plugin-proxy.hh"
#include "clap/helpers/plugin-proxy.hxx"

#include <type_traits>

Expand All @@ -27,10 +29,17 @@ struct test_host : clap::helpers::Host<clap::helpers::MisbehaviourHandler::Termi
void requestCallback() noexcept override {};
};

using tests_plugin_proxy = clap::helpers::PluginProxy<clap::helpers::MisbehaviourHandler::Terminate,
clap::helpers::CheckingLevel::Maximal>;

CATCH_TEST_CASE("Create an Actual Host")
{
CATCH_SECTION("Test Host is Creatable")
{
CATCH_REQUIRE(std::is_constructible<test_host>::value);
}
CATCH_SECTION("Test Plugin Proxy is Creatable")
{
CATCH_REQUIRE(std::is_constructible<tests_plugin_proxy, const clap_plugin&, const test_host&>::value);
}
}

0 comments on commit cc28860

Please sign in to comment.