test_interface

package
v4.0.0 Latest Latest
Warning

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

Go to latest
Published: May 11, 2023 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.

type GenericDisplay

type GenericDisplay[N comparable, V Number] interface {
	GenericParams(m map[N]V) V
}

type Number

type Number interface {
	int64 | float64
}

Jump to

Keyboard shortcuts

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