-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Context Menu Builder still referred to draft/ location
The context menu still refered to context-menu include with a draft and our test suite didn't exercise it, so the code doens't build against 1.2.0 Fix both the include and add a test
- Loading branch information
Showing
3 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#include <clap/helpers/context-menu-builder.hh> | ||
|
||
#include <type_traits> | ||
#include <catch2/catch_all.hpp> | ||
|
||
namespace { | ||
|
||
struct TestBuilder : clap::helpers::ContextMenuBuilder { | ||
TestBuilder() {} | ||
bool addItem(clap_context_menu_item_kind_t item_kind, const void *item_data) override | ||
{ | ||
return false; | ||
} | ||
bool supports(clap_context_menu_item_kind_t item_kind) const noexcept override | ||
{ | ||
return false; | ||
} | ||
}; | ||
|
||
CATCH_TEST_CASE("Context Menu Builder exists") { | ||
CATCH_REQUIRE(std::is_constructible<TestBuilder>::value); | ||
} | ||
|
||
} // namespace |