| 47 | }; |
| 48 | |
| 49 | TEST_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 | |
| 62 | TEST_F(CppPluginLoaderTest, TestLoadPluginsFromDirectory) |
| 63 | { |
nothing calls this directly
no test coverage detected