test

package
v2.3.6 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2022 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetContentData

func GetContentData(content *pb.Content, desiredContentType string) ([]byte, error)

func HTTPDo

func HTTPDo(t *testing.T, req *http.Request) *http.Response

func MakeConfig

func MakeConfig(t *testing.T, enableUI bool) service.Config

func MakeWebConfigurationConfig

func MakeWebConfigurationConfig() service.WebConfiguration

func New

func New(t *testing.T, cfg service.Config) func()

func NewRequest

func NewRequest(method, path string, body io.Reader) *requestBuilder

func SetUp

func SetUp(t *testing.T) (TearDown func())

func ToCommandsFilter

func ToCommandsFilter(s []pb.GetPendingCommandsRequest_Command) []string

func Unmarshal added in v2.3.6

func Unmarshal(code int, input io.Reader, v protoreflect.ProtoMessage) error

func UnmarshalError added in v2.3.6

func UnmarshalError(data []byte) error

Types

type Decoder added in v2.3.6

type Decoder = interface {
	Decode(interface{}) error
}

Jump to

Keyboard shortcuts

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