Skip to content

Commit

Permalink
better coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
mwestphal committed Dec 28, 2024
1 parent 4937fd5 commit a67eecc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions library/testing/TestSDKEngineExceptions.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
#include <interactor.h>
#include <window.h>

#include <filesystem>

namespace fs = std::filesystem;

int TestSDKEngineExceptions(int argc, char* argv[])
{
PseudoUnitTest test;
Expand Down Expand Up @@ -41,6 +45,9 @@ int TestSDKEngineExceptions(int argc, char* argv[])
test.expect<f3d::engine::plugin_exception>("load plugin with invalid library",
[&]() { f3d::engine::loadPlugin(std::string(argv[1]) + "data/invalid.so"); });

test.expect<f3d::engine::plugin_exception>("load plugin with invalid library from search paths",
[&]() { f3d::engine::loadPlugin("invalid", {fs::path(std::string(argv[1]) + "data")}); });

test.expect<f3d::engine::plugin_exception>("load plugin with invalid long name", [&]() {
f3d::engine::loadPlugin(
"/folderfolderfolderfolderfolderfolderfolderfolderfolderfolderfolderfolderfolderfolderfolderf"
Expand Down

0 comments on commit a67eecc

Please sign in to comment.