MCPcopy
hub / github.com/gotify/server / TestInitializePlugin_noOpIfSubDir

Method TestInitializePlugin_noOpIfSubDir

plugin/manager_test.go:160–165  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

158}
159
160func (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
167func (s *ManagerSuite) TestInitializePlugin_directoryInvalid_expectError() {
168 assert.Error(s.T(), s.manager.loadPlugins("<<"))

Callers

nothing calls this directly

Calls 4

CleanMethod · 0.95
PathMethod · 0.95
NewTmpDirFunction · 0.92
loadPluginsMethod · 0.80

Tested by

no test coverage detected