fakes

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 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 {
	CloseIdleConnectionsStub func()

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

func (*HTTPClient) CloseIdleConnections

func (fake *HTTPClient) CloseIdleConnections()

func (*HTTPClient) CloseIdleConnectionsCallCount

func (fake *HTTPClient) CloseIdleConnectionsCallCount() int

func (*HTTPClient) CloseIdleConnectionsCalls

func (fake *HTTPClient) CloseIdleConnectionsCalls(stub func())

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) DoCalls

func (fake *HTTPClient) DoCalls(stub func(*http.Request) (*http.Response, error))

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 {
	CloseIdleConnectionsStub func()

	DoStub func(string, string, interface{}, interface{}, string) error
	// contains filtered or unexported fields
}

func (*JSONClient) CloseIdleConnections

func (fake *JSONClient) CloseIdleConnections()

func (*JSONClient) CloseIdleConnectionsCallCount

func (fake *JSONClient) CloseIdleConnectionsCallCount() int

func (*JSONClient) CloseIdleConnectionsCalls

func (fake *JSONClient) CloseIdleConnectionsCalls(stub func())

func (*JSONClient) Do

func (fake *JSONClient) Do(arg1 string, arg2 string, arg3 interface{}, arg4 interface{}, arg5 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) DoCalls

func (fake *JSONClient) DoCalls(stub func(string, string, interface{}, interface{}, string) error)

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(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(arg1 interface{}) ([]byte, error)

func (*Marshaler) MarshalArgsForCall

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

func (*Marshaler) MarshalCallCount

func (fake *Marshaler) MarshalCallCount() int

func (*Marshaler) MarshalCalls

func (fake *Marshaler) MarshalCalls(stub func(interface{}) ([]byte, error))

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 {
	IncrementCounterStub func(string)

	SendDurationStub func(string, time.Duration)
	// 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) IncrementCounterCalls

func (fake *MetricsSender) IncrementCounterCalls(stub func(string))

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

func (*MetricsSender) SendDurationCalls

func (fake *MetricsSender) SendDurationCalls(stub func(string, time.Duration))

type MySQLAdapter

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

	RegisterTLSConfigStub func(string, *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(arg1 string) (*mysql.Config, error)

func (*MySQLAdapter) ParseDSNArgsForCall

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

func (*MySQLAdapter) ParseDSNCallCount

func (fake *MySQLAdapter) ParseDSNCallCount() int

func (*MySQLAdapter) ParseDSNCalls

func (fake *MySQLAdapter) ParseDSNCalls(stub func(string) (*mysql.Config, error))

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(arg1 string, arg2 *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) RegisterTLSConfigCalls

func (fake *MySQLAdapter) RegisterTLSConfigCalls(stub func(string, *tls.Config) error)

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

func (*Sleeper) SleepCalls

func (fake *Sleeper) SleepCalls(stub func(time.Duration))

type Unmarshaler

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

func (*Unmarshaler) Invocations

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

func (*Unmarshaler) Unmarshal

func (fake *Unmarshaler) Unmarshal(arg1 []byte, arg2 interface{}) error

func (*Unmarshaler) UnmarshalArgsForCall

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

func (*Unmarshaler) UnmarshalCallCount

func (fake *Unmarshaler) UnmarshalCallCount() int

func (*Unmarshaler) UnmarshalCalls

func (fake *Unmarshaler) UnmarshalCalls(stub func([]byte, interface{}) error)

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