MCPcopy Create free account
hub / github.com/EndstoneMC/endstone / TEST_F

Function TEST_F

tests/test_cpp_plugin_loader.cpp:49–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47};
48
49TEST_F(CppPluginLoaderTest, TestLoadPlugin)
50{
51 auto nonexistent_path = plugin_dir_ / "nonexistent_file";
52 ASSERT_EQ(nullptr, loader_->loadPlugin(nonexistent_path.string()));
53
54#ifdef _WIN32
55 auto plugin_path = plugin_dir_ / "endstone_test_plugin.dll";
56#elif __linux__
57 auto plugin_path = plugin_dir_ / "endstone_test_plugin.so";
58#endif
59 ASSERT_NE(nullptr, loader_->loadPlugin(plugin_path.string()));
60}
61
62TEST_F(CppPluginLoaderTest, TestLoadPluginsFromDirectory)
63{

Callers

nothing calls this directly

Calls 8

getPrefixMethod · 0.80
loadPluginMethod · 0.45
loadPluginsMethod · 0.45
sizeMethod · 0.45
getNameMethod · 0.45
getDescriptionMethod · 0.45
getVersionMethod · 0.45
getPluginFileFiltersMethod · 0.45

Tested by

no test coverage detected