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

Method TestInitializePlugin_noOpIfDotFile

plugin/manager_test.go:149–158  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

147}
148
149func (s *ManagerSuite) TestInitializePlugin_noOpIfDotFile() {
150 tmpDir := test.NewTmpDir("gotify_testinitializeplugin_dotfile")
151 defer tmpDir.Clean()
152 f, err := os.Create(tmpDir.Path(".test"))
153 assert.NoError(s.T(), err)
154 _, err = f.WriteString("dummy")
155 assert.NoError(s.T(), err)
156 assert.NoError(s.T(), f.Close())
157 assert.Nil(s.T(), s.manager.loadPlugins(tmpDir.Path()))
158}
159
160func (s *ManagerSuite) TestInitializePlugin_noOpIfSubDir() {
161 tmpDir := test.NewTmpDir("gotify_testinitializeplugin_subdir")

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected