fakes

package
v0.0.0-...-e20ad14 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPClient

type HTTPClient struct {
	DoStub func(*http.Request) (*http.Response, error)
	// contains filtered or unexported fields
}

func (*HTTPClient) Do

func (fake *HTTPClient) Do(arg1 *http.Request) (*http.Response, error)

func (*HTTPClient) DoArgsForCall

func (fake *HTTPClient) DoArgsForCall(i int) *http.Request

func (*HTTPClient) DoCallCount

func (fake *HTTPClient) DoCallCount() int

func (*HTTPClient) DoReturns

func (fake *HTTPClient) DoReturns(result1 *http.Response, result2 error)

func (*HTTPClient) DoReturnsOnCall

func (fake *HTTPClient) DoReturnsOnCall(i int, result1 *http.Response, result2 error)

func (*HTTPClient) Invocations

func (fake *HTTPClient) Invocations() map[string][][]interface{}

type JSONClient

type JSONClient struct {
	DoStub func(method, route string, reqData, respData interface{}, token string) error
	// contains filtered or unexported fields
}

func (*JSONClient) Do

func (fake *JSONClient) Do(method string, route string, reqData interface{}, respData interface{}, token string) error

func (*JSONClient) DoArgsForCall

func (fake *JSONClient) DoArgsForCall(i int) (string, string, interface{}, interface{}, string)

func (*JSONClient) DoCallCount

func (fake *JSONClient) DoCallCount() int

func (*JSONClient) DoReturns

func (fake *JSONClient) DoReturns(result1 error)

func (*JSONClient) DoReturnsOnCall

func (fake *JSONClient) DoReturnsOnCall(i int, result1 error)

func (*JSONClient) Invocations

func (fake *JSONClient) Invocations() map[string][][]interface{}

type Marshaler

type Marshaler struct {
	MarshalStub func(input interface{}) ([]byte, error)
	// contains filtered or unexported fields
}

func (*Marshaler) Invocations

func (fake *Marshaler) Invocations() map[string][][]interface{}

func (*Marshaler) Marshal

func (fake *Marshaler) Marshal(input interface{}) ([]byte, error)

func (*Marshaler) MarshalArgsForCall

func (fake *Marshaler) MarshalArgsForCall(i int) interface{}

func (*Marshaler) MarshalCallCount

func (fake *Marshaler) MarshalCallCount() int

func (*Marshaler) MarshalReturns

func (fake *Marshaler) MarshalReturns(result1 []byte, result2 error)

func (*Marshaler) MarshalReturnsOnCall

func (fake *Marshaler) MarshalReturnsOnCall(i int, result1 []byte, result2 error)

type MetricsSender

type MetricsSender struct {
	SendDurationStub func(string, time.Duration)

	IncrementCounterStub func(string)
	// contains filtered or unexported fields
}

func (*MetricsSender) IncrementCounter

func (fake *MetricsSender) IncrementCounter(arg1 string)

func (*MetricsSender) IncrementCounterArgsForCall

func (fake *MetricsSender) IncrementCounterArgsForCall(i int) string

func (*MetricsSender) IncrementCounterCallCount

func (fake *MetricsSender) IncrementCounterCallCount() int

func (*MetricsSender) Invocations

func (fake *MetricsSender) Invocations() map[string][][]interface{}

func (*MetricsSender) SendDuration

func (fake *MetricsSender) SendDuration(arg1 string, arg2 time.Duration)

func (*MetricsSender) SendDurationArgsForCall

func (fake *MetricsSender) SendDurationArgsForCall(i int) (string, time.Duration)

func (*MetricsSender) SendDurationCallCount

func (fake *MetricsSender) SendDurationCallCount() int

type MySQLAdapter

type MySQLAdapter struct {
	ParseDSNStub func(dsn string) (cfg *mysql.Config, err error)

	RegisterTLSConfigStub func(key string, config *tls.Config) error
	// contains filtered or unexported fields
}

func (*MySQLAdapter) Invocations

func (fake *MySQLAdapter) Invocations() map[string][][]interface{}

func (*MySQLAdapter) ParseDSN

func (fake *MySQLAdapter) ParseDSN(dsn string) (cfg *mysql.Config, err error)

func (*MySQLAdapter) ParseDSNArgsForCall

func (fake *MySQLAdapter) ParseDSNArgsForCall(i int) string

func (*MySQLAdapter) ParseDSNCallCount

func (fake *MySQLAdapter) ParseDSNCallCount() int

func (*MySQLAdapter) ParseDSNReturns

func (fake *MySQLAdapter) ParseDSNReturns(result1 *mysql.Config, result2 error)

func (*MySQLAdapter) ParseDSNReturnsOnCall

func (fake *MySQLAdapter) ParseDSNReturnsOnCall(i int, result1 *mysql.Config, result2 error)

func (*MySQLAdapter) RegisterTLSConfig

func (fake *MySQLAdapter) RegisterTLSConfig(key string, config *tls.Config) error

func (*MySQLAdapter) RegisterTLSConfigArgsForCall

func (fake *MySQLAdapter) RegisterTLSConfigArgsForCall(i int) (string, *tls.Config)

func (*MySQLAdapter) RegisterTLSConfigCallCount

func (fake *MySQLAdapter) RegisterTLSConfigCallCount() int

func (*MySQLAdapter) RegisterTLSConfigReturns

func (fake *MySQLAdapter) RegisterTLSConfigReturns(result1 error)

func (*MySQLAdapter) RegisterTLSConfigReturnsOnCall

func (fake *MySQLAdapter) RegisterTLSConfigReturnsOnCall(i int, result1 error)

type Sleeper

type Sleeper struct {
	SleepStub func(time.Duration)
	// contains filtered or unexported fields
}

func (*Sleeper) Invocations

func (fake *Sleeper) Invocations() map[string][][]interface{}

func (*Sleeper) Sleep

func (fake *Sleeper) Sleep(arg1 time.Duration)

func (*Sleeper) SleepArgsForCall

func (fake *Sleeper) SleepArgsForCall(i int) time.Duration

func (*Sleeper) SleepCallCount

func (fake *Sleeper) SleepCallCount() int

type Unmarshaler

type Unmarshaler struct {
	UnmarshalStub func(input []byte, output interface{}) error
	// contains filtered or unexported fields
}

func (*Unmarshaler) Invocations

func (fake *Unmarshaler) Invocations() map[string][][]interface{}

func (*Unmarshaler) Unmarshal

func (fake *Unmarshaler) Unmarshal(input []byte, output interface{}) error

func (*Unmarshaler) UnmarshalArgsForCall

func (fake *Unmarshaler) UnmarshalArgsForCall(i int) ([]byte, interface{})

func (*Unmarshaler) UnmarshalCallCount

func (fake *Unmarshaler) UnmarshalCallCount() int

func (*Unmarshaler) UnmarshalReturns

func (fake *Unmarshaler) UnmarshalReturns(result1 error)

func (*Unmarshaler) UnmarshalReturnsOnCall

func (fake *Unmarshaler) UnmarshalReturnsOnCall(i int, result1 error)

Jump to

Keyboard shortcuts

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