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 856b946 commit e2a80d1
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 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 Down Expand Up @@ -34,3 +36,14 @@ CATCH_TEST_CASE("Create an Actual Host")
CATCH_REQUIRE(std::is_constructible<test_host>::value);
}
}

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

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

0 comments on commit e2a80d1

Please sign in to comment.