Documentation ¶
Overview ¶
Хелпер для теста приложения в целом
Index ¶
- func LoadConfig(home string, fileName string, env misc.StringMap, cfg any) (err error)
- func Rest(t *testing.T, data *Data)
- func SetLiveTest(h *stdhttp.HTTP, proc LiveTestProcessor) (err error)
- func Start(t *testing.T, home string, fileName string, env misc.StringMap, cfg config.App) (err error)
- func Stop(code int)
- type Call
- type Data
- type Init
- type LiveTestProcessor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadConfig ¶
Загрузка конфига приложения
func SetLiveTest ¶ added in v0.1.9
func SetLiveTest(h *stdhttp.HTTP, proc LiveTestProcessor) (err error)
Types ¶
type Call ¶ added in v0.1.5
type Call struct { // In Method string RequestHeader http.Header URI string Body []byte // Out ID uint64 ResponseHeader http.Header Status int Answer []byte }
func (*Call) WriteHeader ¶ added in v0.1.5
type LiveTestProcessor ¶ added in v0.1.9
Click to show internal directories.
Click to hide internal directories.