Versions in this module Expand all Collapse all v1 v1.3.0 Oct 23, 2023 Changes in this version + var DBConnection = "postgresql://root:root@localhost:26257/defaultdb?sslmode=disable" + type Login struct + Password string + Username string + type Option struct + DBReRun bool + DBSetup func(db *database.Database) + Database bool + Logger *zap.Logger + Mailer bool + ModuleLoader web.ModuleRegisterFunc + func (option Option) New() (*TestServer, error) + type TestServer struct + Close func() + DB *database.Database + Mails chan *mailer.TestingMail + WS *web.Service + func New(modules web.ModuleRegisterFunc) (*TestServer, error) + func NewWithDBSetup(modules web.ModuleRegisterFunc, dbCall func(db *database.Database)) (*TestServer, error) + func (s *TestServer) DatabaseForget() + func (s *TestServer) Login(login Login) error + func (s *TestServer) Request(method, url string, body interface{}, expectCode int, jsonObj interface{}) error + func (s *TestServer) TestLogin() error