Documentation ¶
Index ¶
- func Echo(creq goapp.CallRequest) apps.CallResponse
- type Caller
- type Helper
- func (th *Helper) AdminCall(appID apps.AppID, creq apps.CallRequest) (*apps.CallResponse, *model.Response, error)
- func (th *Helper) Call(appID apps.AppID, creq apps.CallRequest) (*apps.CallResponse, *model.Response, error)
- func (th *Helper) CallWithAppMetadata(appID apps.AppID, creq apps.CallRequest) (*httpin.CallResponse, *model.Response, error)
- func (th *Helper) CleanRun(name string, f func(th *Helper)) bool
- func (th *Helper) CreateLocalClient(socketPath string) *appclient.ClientPP
- func (th *Helper) CreateUnauthenticatedClientPP() *appclient.ClientPP
- func (th *Helper) DisableApp(app *goapp.App)
- func (th *Helper) EnableApp(app *goapp.App)
- func (th *Helper) HappyAdminCall(appID apps.AppID, creq apps.CallRequest) *apps.CallResponse
- func (th *Helper) HappyCall(appID apps.AppID, creq apps.CallRequest) *apps.CallResponse
- func (th *Helper) HappyUser2Call(appID apps.AppID, creq apps.CallRequest) *apps.CallResponse
- func (th *Helper) InitClients()
- func (th *Helper) InstallApp(app *goapp.App) *apps.App
- func (th *Helper) InstallAppWithCleanup(app *goapp.App)
- func (th *Helper) InstallAppsPlugin()
- func (th *Helper) Run(name string, f func(th *Helper)) bool
- func (th *Helper) TearDown()
- func (th *Helper) UninstallApp(appID apps.AppID)
- func (th *Helper) User2Call(appID apps.AppID, creq apps.CallRequest) (*apps.CallResponse, *model.Response, error)
- type TestClientPP
- type TestFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Echo ¶ added in v1.2.0
func Echo(creq goapp.CallRequest) apps.CallResponse
Types ¶
type Caller ¶ added in v1.2.0
type Caller func(apps.AppID, apps.CallRequest) *apps.CallResponse
type Helper ¶
type Helper struct { *testing.T ServerTestHelper *api4.TestHelper LastInstalledBotUser *model.User LastInstalledApp *apps.App UserClientPP *appclient.ClientPP User2ClientPP *appclient.ClientPP SystemAdminClientPP *appclient.ClientPP LocalClientPP *appclient.ClientPP // contains filtered or unexported fields }
func (*Helper) AdminCall ¶
func (th *Helper) AdminCall(appID apps.AppID, creq apps.CallRequest) (*apps.CallResponse, *model.Response, error)
func (*Helper) Call ¶
func (th *Helper) Call(appID apps.AppID, creq apps.CallRequest) (*apps.CallResponse, *model.Response, error)
func (*Helper) CallWithAppMetadata ¶ added in v1.2.0
func (th *Helper) CallWithAppMetadata(appID apps.AppID, creq apps.CallRequest) (*httpin.CallResponse, *model.Response, error)
func (*Helper) CreateLocalClient ¶
func (*Helper) CreateUnauthenticatedClientPP ¶
func (*Helper) DisableApp ¶ added in v1.2.0
func (*Helper) HappyAdminCall ¶
func (th *Helper) HappyAdminCall(appID apps.AppID, creq apps.CallRequest) *apps.CallResponse
func (*Helper) HappyCall ¶
func (th *Helper) HappyCall(appID apps.AppID, creq apps.CallRequest) *apps.CallResponse
func (*Helper) HappyUser2Call ¶
func (th *Helper) HappyUser2Call(appID apps.AppID, creq apps.CallRequest) *apps.CallResponse
func (*Helper) InitClients ¶
func (th *Helper) InitClients()
func (*Helper) InstallAppWithCleanup ¶ added in v1.2.0
func (*Helper) InstallAppsPlugin ¶
func (th *Helper) InstallAppsPlugin()
func (*Helper) UninstallApp ¶ added in v1.2.0
type TestClientPP ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.