testing

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2022 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 Interface

type Interface interface {
	Fprintf(dst io.Reader, format string, a ...interface{}) (int, error)
	Printf(string, ...interface{}) (int, error)
	Just(string, int) string
}

type InterfaceMock

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

InterfaceMock interface github.com/sirkon/pamgen/internal/testing.Interface mock

func NewInterfaceMock

func NewInterfaceMock(ctrl *gomock.Controller) *InterfaceMock

NewInterfaceMock creates InterfaceMock instance

func (*InterfaceMock) EXPECT

func (m *InterfaceMock) EXPECT() *InterfaceMockRecorder

EXPECT returns expected calls recorder

func (*InterfaceMock) Fprintf

func (m *InterfaceMock) Fprintf(dst io.Reader, format string, a ...interface{}) (r int, err error)

Fprintf method to implement github.com/sirkon/pamgen/internal/testing.Interface

func (*InterfaceMock) Just

func (m *InterfaceMock) Just(arg string, arg2 int) (r string)

Just method to implement github.com/sirkon/pamgen/internal/testing.Interface

func (*InterfaceMock) Printf

func (m *InterfaceMock) Printf(arg string, arg2 ...interface{}) (r int, err error)

Printf method to implement github.com/sirkon/pamgen/internal/testing.Interface

type InterfaceMockRecorder

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

InterfaceMockRecorder records expected calls of github.com/sirkon/pamgen/internal/testing.Interface

func (*InterfaceMockRecorder) Fprintf

func (mr *InterfaceMockRecorder) Fprintf(dst, format interface{}, a ...interface{}) *gomock.Call

Fprintf register expected call of method github.com/sirkon/pamgen/internal/testing.Interface.Fprintf

func (*InterfaceMockRecorder) Just

func (mr *InterfaceMockRecorder) Just(arg, arg2 interface{}) *gomock.Call

Just register expected call of method github.com/sirkon/pamgen/internal/testing.Interface.Just

func (*InterfaceMockRecorder) Printf

func (mr *InterfaceMockRecorder) Printf(arg interface{}, arg2 ...interface{}) *gomock.Call

Printf register expected call of method github.com/sirkon/pamgen/internal/testing.Interface.Printf

type ReaderMock

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

ReaderMock interface io.Reader mock

func NewReaderMock

func NewReaderMock(ctrl *gomock.Controller) *ReaderMock

NewReaderMock creates ReaderMock instance

func (*ReaderMock) EXPECT

func (m *ReaderMock) EXPECT() *ReaderMockRecorder

EXPECT returns expected calls recorder

func (*ReaderMock) Read

func (m *ReaderMock) Read(p []byte) (n int, err error)

Read method to implement io.Reader

type ReaderMockRecorder

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

ReaderMockRecorder records expected calls of io.Reader

func (*ReaderMockRecorder) Read

func (mr *ReaderMockRecorder) Read(p interface{}) *gomock.Call

Read register expected call of method io.Reader.Read

Jump to

Keyboard shortcuts

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