test_interface

package
v2.9.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Display

type Display interface {
	Flash(_param0 string, _param1 int)
	Show(_param0 string)
	SomeValue() string
	MultipleValues() (string, int, float32)
	MultipleParamsAndReturnValue(s string, i int) string
	ArrayParam(array []string)
	MapParam(m map[string]http.Request)
	FloatParam(float32)
	InterfaceParam(interface{})
	InterfaceReturnValue() interface{}
	ErrorReturnValue() error
	ErrorParam(e error)
	NetHttpRequestParam(r http.Request)
	NetHttpRequestPtrParam(r *http.Request)
	FuncReturnValue() func()
	VariadicParam(v ...string)
	NormalAndVariadicParam(s string, i int, v ...string)
	CamelCaseTypeParam(camelCaseParam io.ReadCloser)
	MapOfStringToInterfaceParam(m map[string]interface{})
	UseTime(t time.Time)
	ChanParams(<-chan string, chan<- error)
	ChanReturnValues() (<-chan string, chan<- error)
	VariadicWithNonPrimitiveType(m ...map[int]int)
	MapWithRedundantImports(m map[http.File]http.File)
	MapOfStringToEmptyUnnamedStruct(m map[string]struct{})
}

Display is some sample interface to be mocked.

Jump to

Keyboard shortcuts

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