docs(web/webtest)
This commit is contained in:
parent
4758997040
commit
2fcb2d7cb4
|
@ -28,6 +28,7 @@ type Option struct {
|
||||||
ModuleLoader web.ModuleRegisterFunc
|
ModuleLoader web.ModuleRegisterFunc
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TestServer - to run it without listen an server
|
||||||
type TestServer struct {
|
type TestServer struct {
|
||||||
DB *database.Database
|
DB *database.Database
|
||||||
Mails chan *mailer.TestingMail
|
Mails chan *mailer.TestingMail
|
||||||
|
@ -113,7 +114,7 @@ func NewWithOption(option Option) (*TestServer, error) {
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// DatabaseForget, to run a test without a database
|
// DatabaseForget to run a test without a database
|
||||||
func (s *TestServer) DatabaseForget() {
|
func (s *TestServer) DatabaseForget() {
|
||||||
s.WS.DB = nil
|
s.WS.DB = nil
|
||||||
s.DB = nil
|
s.DB = nil
|
||||||
|
|
Loading…
Reference in New Issue