fakes

package
v0.22.5 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChanInterface

type ChanInterface struct {
	ChanMethodCall struct {
		CallCount int
		Receives  struct {
			IntChannel    chan int
			StringChannel <-chan string
		}
		Returns struct {
			BoolChannel chan<- bool
		}
		Stub func(chan int, <-chan string) chan<- bool
		// contains filtered or unexported fields
	}
}

func (*ChanInterface) ChanMethod

func (f *ChanInterface) ChanMethod(param1 chan int, param2 <-chan string) chan<- bool

type Command

type Command struct {
	ExecuteCall struct {
		CallCount int
		Receives  struct {
			Args []string
		}
		Returns struct {
			Error error
		}
		Stub func([]string) error
		// contains filtered or unexported fields
	}
	UsageCall struct {
		CallCount int
		Returns   struct {
			Usage jhanda.Usage
		}
		Stub func() jhanda.Usage
		// contains filtered or unexported fields
	}
}

func (*Command) Execute

func (f *Command) Execute(param1 []string) error

func (*Command) Usage

func (f *Command) Usage() jhanda.Usage

type DuplicateArgumentInterface

type DuplicateArgumentInterface struct {
	DuplicatesCall struct {
		CallCount int
		Receives  struct {
			String_1 string
			String_2 string
			Int      int
		}
		Returns struct {
			String string
			Int_1  int
			Int_2  int
		}
		Stub func(string, string, int) (string, int, int)
		// contains filtered or unexported fields
	}
}

func (*DuplicateArgumentInterface) Duplicates

func (f *DuplicateArgumentInterface) Duplicates(param1 string, param2 string, param3 int) (string, int, int)

type FunctionInterface

type FunctionInterface struct {
	FuncMethodCall struct {
		CallCount int
		Receives  struct {
			FuncStringError func(string) error
		}
		Returns struct {
			FuncIntBool func(int) bool
		}
		Stub func(func(string) error) func(int) bool
		// contains filtered or unexported fields
	}
}

func (*FunctionInterface) FuncMethod

func (f *FunctionInterface) FuncMethod(param1 func(string) error) func(int) bool

type ModuleInterface

type ModuleInterface struct {
	SomeMethodCall struct {
		CallCount int
		Receives  struct {
			Usage jhanda.Usage
		}
		Stub func(jhanda.Usage)
		// contains filtered or unexported fields
	}
}

func (*ModuleInterface) SomeMethod

func (f *ModuleInterface) SomeMethod(param1 jhanda.Usage)

type Reader

type Reader struct {
	ReadCall struct {
		CallCount int
		Receives  struct {
			P []byte
		}
		Returns struct {
			N   int
			Err error
		}
		Stub func([]byte) (int, error)
		// contains filtered or unexported fields
	}
}

func (*Reader) Read

func (f *Reader) Read(param1 []byte) (int, error)

type SimpleInterface

type SimpleInterface struct {
	OtherMethodCall struct {
		CallCount int
		Receives  struct {
			Buffer *bytes.Buffer
		}
		Returns struct {
			Reader io.Reader
			Error  error
		}
		Stub func(*bytes.Buffer) (io.Reader, error)
		// contains filtered or unexported fields
	}
	SomeMethodCall struct {
		CallCount int
		Receives  struct {
			SomeParam *bytes.Buffer
		}
		Returns struct {
			SomeResult io.Reader
		}
		Stub func(*bytes.Buffer) io.Reader
		// contains filtered or unexported fields
	}
}

func (*SimpleInterface) OtherMethod

func (f *SimpleInterface) OtherMethod(param1 *bytes.Buffer) (io.Reader, error)

func (*SimpleInterface) SomeMethod

func (f *SimpleInterface) SomeMethod(param1 *bytes.Buffer) io.Reader

type SomeNamedInterface

type SomeNamedInterface struct {
	SomeMethodCall struct {
		CallCount int
		Receives  struct {
			SomeParam *bytes.Buffer
		}
		Returns struct {
			SomeResult io.Reader
		}
		Stub func(*bytes.Buffer) io.Reader
		// contains filtered or unexported fields
	}
}

func (*SomeNamedInterface) SomeMethod

func (f *SomeNamedInterface) SomeMethod(param1 *bytes.Buffer) io.Reader

type VariadicInterface

type VariadicInterface struct {
	VariadicMethodCall struct {
		CallCount int
		Receives  struct {
			SomeParams []int
		}
		Stub func(...int)
		// contains filtered or unexported fields
	}
}

func (*VariadicInterface) VariadicMethod

func (f *VariadicInterface) VariadicMethod(param1 ...int)

Jump to

Keyboard shortcuts

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