a

package
v0.0.0-...-a00d270 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conn

type Conn struct {
	mock.Mock
}

func (*Conn) Close

func (m *Conn) Close() error

func (*Conn) LocalAddr

func (m *Conn) LocalAddr() net.Addr

func (*Conn) Read

func (m *Conn) Read(b []byte) (int, error)

func (*Conn) RemoteAddr

func (m *Conn) RemoteAddr() net.Addr

func (*Conn) SetDeadline

func (m *Conn) SetDeadline(t time.Time) error

func (*Conn) SetReadDeadline

func (m *Conn) SetReadDeadline(t time.Time) error

func (*Conn) SetWriteDeadline

func (m *Conn) SetWriteDeadline(t time.Time) error

func (*Conn) Write

func (m *Conn) Write(b []byte) (int, error)

type FileWriteStringObj

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

func (*FileWriteStringObj) Execute

func (stub *FileWriteStringObj) Execute(f *os.File, str string) (int, error)

func (*FileWriteStringObj) Reset

func (stub *FileWriteStringObj) Reset()

func (*FileWriteStringObj) UseFunction

func (stub *FileWriteStringObj) UseFunction(toCall func(f *os.File, str string) (int, error))

type IoutilReadAllObj

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

-------------------- ioutil.ReadAll

func (*IoutilReadAllObj) Execute

func (stub *IoutilReadAllObj) Execute(r io.Reader) ([]byte, error)

func (*IoutilReadAllObj) Reset

func (stub *IoutilReadAllObj) Reset()

func (*IoutilReadAllObj) UseFunction

func (stub *IoutilReadAllObj) UseFunction(toCall func(r io.Reader) ([]byte, error))

type JsonUnmarshalObj

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

-------------------- json.Unmarshal

func (*JsonUnmarshalObj) Execute

func (stub *JsonUnmarshalObj) Execute(data []byte, v interface{}) error

func (*JsonUnmarshalObj) Reset

func (stub *JsonUnmarshalObj) Reset()

func (*JsonUnmarshalObj) UseFunction

func (stub *JsonUnmarshalObj) UseFunction(toCall func(data []byte, v interface{}) error)

type ReaderReadBytesObj

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

-------------------- Reader.ReadBytes

func (*ReaderReadBytesObj) Execute

func (stub *ReaderReadBytesObj) Execute(reader *bufio.Reader, delim byte) ([]byte, error)

func (*ReaderReadBytesObj) Reset

func (stub *ReaderReadBytesObj) Reset()

func (*ReaderReadBytesObj) UseFunction

func (stub *ReaderReadBytesObj) UseFunction(toCall func(reader *bufio.Reader, delim byte) ([]byte, error))

Jump to

Keyboard shortcuts

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