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

Method TestPluginLoadFail_expectPanic

router/router_test.go:358–367  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

356}
357
358func (s *IntegrationSuite) TestPluginLoadFail_expectPanic() {
359 db := testdb.NewDBWithDefaultUser(s.T())
360 defer db.Close()
361
362 assert.Panics(s.T(), func() {
363 Create(db.GormDatabase, new(model.VersionInfo), &config.Configuration{
364 PluginsDir: "<THIS_PATH_IS_MALFORMED>",
365 })
366 })
367}
368
369func (s *IntegrationSuite) TestAuthentication() {
370 req := s.newRequest("GET", "current/user", "")

Callers

nothing calls this directly

Calls 3

NewDBWithDefaultUserFunction · 0.92
CreateFunction · 0.85
CloseMethod · 0.45

Tested by

no test coverage detected