()
| 158 | } |
| 159 | |
| 160 | func (s *ManagerSuite) TestInitializePlugin_noOpIfSubDir() { |
| 161 | tmpDir := test.NewTmpDir("gotify_testinitializeplugin_subdir") |
| 162 | defer tmpDir.Clean() |
| 163 | os.Mkdir(tmpDir.Path("subdir"), 0o755) |
| 164 | assert.Nil(s.T(), s.manager.loadPlugins(tmpDir.Path())) |
| 165 | } |
| 166 | |
| 167 | func (s *ManagerSuite) TestInitializePlugin_directoryInvalid_expectError() { |
| 168 | assert.Error(s.T(), s.manager.loadPlugins("<<")) |
nothing calls this directly
no test coverage detected