test

package
v2.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2020 License: BSD-3-Clause Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type A

type A interface {
	Call() (B, error)
}

type AsyncProducer

type AsyncProducer interface {
	Input() chan<- bool
	Output() <-chan bool
	Whatever() chan bool
}

type B

type B struct{}

type Blank

type Blank interface {
	Create(x interface{}) error
}

type C

type C int

type ConsulLock

type ConsulLock interface {
	Lock(<-chan struct{}) (<-chan struct{}, error)
	Unlock() error
}

type Err

type Err struct {
	// contains filtered or unexported fields
}

func (*Err) Code

func (e *Err) Code() uint64

func (*Err) Error

func (e *Err) Error() string

type Example

type Example interface {
	A() http.Flusher
	B(fixtureshttp string) my_http.MyStruct
}

Example is an example

type Fooer

type Fooer interface {
	Foo(f func(x string) string) error
	Bar(f func([]int))
	Baz(path string) func(x string) string
}

type HasConflictingNestedImports

type HasConflictingNestedImports interface {
	RequesterNS
	Z() http.MyStruct
}

type ImportsSameAsPackage

type ImportsSameAsPackage interface {
	A() test.B
	B() KeyManager
	C(C)
}

type KeyManager

type KeyManager interface {
	GetKey(string, uint16) ([]byte, *Err)
}

type MapFunc

type MapFunc interface {
	Get(m map[string]func(string) string) error
}

type MapToInterface

type MapToInterface interface {
	Foo(arg1 ...map[string]interface{})
}

type MyReader

type MyReader interface {
	io.Reader
}

type Requester

type Requester interface {
	Get(path string) (string, error)
}

type Requester2

type Requester2 interface {
	Get(path string) error
}

type Requester3

type Requester3 interface {
	Get() error
}

type Requester4

type Requester4 interface {
	Get()
}

type RequesterArgSameAsImport

type RequesterArgSameAsImport interface {
	Get(json string) *json.RawMessage
}

type RequesterArgSameAsNamedImport

type RequesterArgSameAsNamedImport interface {
	Get(json string) *json.RawMessage
}

type RequesterArgSameAsPkg

type RequesterArgSameAsPkg interface {
	Get(test string)
}

type RequesterArray

type RequesterArray interface {
	Get(path string) ([2]string, error)
}

type RequesterElided

type RequesterElided interface {
	Get(path, url string) error
}

type RequesterIface

type RequesterIface interface {
	Get() io.Reader
}

type RequesterNS

type RequesterNS interface {
	Get(path string) (http.Response, error)
}

type RequesterPtr

type RequesterPtr interface {
	Get(path string) (*string, error)
}

type RequesterReturnElided

type RequesterReturnElided interface {
	Get(path string) (a, b, c int, err error)
}

type RequesterSlice

type RequesterSlice interface {
	Get(path string) ([]string, error)
}

type RequesterVariadic

type RequesterVariadic interface {
	// cases: only variadic argument, w/ and w/out interface type
	Get(values ...string) bool
	OneInterface(a ...interface{}) bool

	// cases: normal argument + variadic argument, w/ and w/o interface type
	Sprintf(format string, a ...interface{}) string
	MultiWriteToFile(filename string, w ...io.Writer) string
}

type SendFunc added in v2.1.0

type SendFunc func(ctx context.Context, data string) (int, error)

type Sibling

type Sibling interface {
	DoSomething()
}

type UsesOtherPkgIface

type UsesOtherPkgIface interface {
	DoSomethingElse(obj Sibling)
}

Directories

Path Synopsis
buildtag
foo

Jump to

Keyboard shortcuts

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