testutils

package
v5.7.3+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 1, 2019 License: AGPL-3.0, Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadTestFile

func ReadTestFile(name string) ([]byte, error)

Types

type MockedHTTPService

type MockedHTTPService struct {
	Server *httptest.Server
}

func MakeMockedHTTPService

func MakeMockedHTTPService(handler http.Handler) *MockedHTTPService

func (*MockedHTTPService) Close

func (h *MockedHTTPService) Close()

func (*MockedHTTPService) MakeClient

func (h *MockedHTTPService) MakeClient(trustURLs bool) *httpservice.Client

type StaticConfigService

type StaticConfigService struct {
	Cfg *model.Config
}

func (StaticConfigService) AddConfigListener

func (StaticConfigService) AddConfigListener(func(old, current *model.Config)) string

func (StaticConfigService) Config

func (s StaticConfigService) Config() *model.Config

func (StaticConfigService) RemoveConfigListener

func (StaticConfigService) RemoveConfigListener(string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL