fakes

package
v2.0.11 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT.

This file was generated by counterfeiter

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 Bar

type Bar struct {
	AddStub func(int) int

	FinishStub func()

	KickoffStub func()

	NewProxyReaderStub func(io.Reader) io.Reader

	SetOutputStub func(io.Writer)

	SetTotalStub func(int64)
	// contains filtered or unexported fields
}

func (*Bar) Add

func (fake *Bar) Add(arg1 int) int

func (*Bar) AddArgsForCall

func (fake *Bar) AddArgsForCall(i int) int

func (*Bar) AddCallCount

func (fake *Bar) AddCallCount() int

func (*Bar) AddCalls

func (fake *Bar) AddCalls(stub func(int) int)

func (*Bar) AddReturns

func (fake *Bar) AddReturns(result1 int)

func (*Bar) AddReturnsOnCall

func (fake *Bar) AddReturnsOnCall(i int, result1 int)

func (*Bar) Finish

func (fake *Bar) Finish()

func (*Bar) FinishCallCount

func (fake *Bar) FinishCallCount() int

func (*Bar) FinishCalls

func (fake *Bar) FinishCalls(stub func())

func (*Bar) Invocations

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

func (*Bar) Kickoff

func (fake *Bar) Kickoff()

func (*Bar) KickoffCallCount

func (fake *Bar) KickoffCallCount() int

func (*Bar) KickoffCalls

func (fake *Bar) KickoffCalls(stub func())

func (*Bar) NewProxyReader

func (fake *Bar) NewProxyReader(arg1 io.Reader) io.Reader

func (*Bar) NewProxyReaderArgsForCall

func (fake *Bar) NewProxyReaderArgsForCall(i int) io.Reader

func (*Bar) NewProxyReaderCallCount

func (fake *Bar) NewProxyReaderCallCount() int

func (*Bar) NewProxyReaderCalls

func (fake *Bar) NewProxyReaderCalls(stub func(io.Reader) io.Reader)

func (*Bar) NewProxyReaderReturns

func (fake *Bar) NewProxyReaderReturns(result1 io.Reader)

func (*Bar) NewProxyReaderReturnsOnCall

func (fake *Bar) NewProxyReaderReturnsOnCall(i int, result1 io.Reader)

func (*Bar) SetOutput

func (fake *Bar) SetOutput(arg1 io.Writer)

func (*Bar) SetOutputArgsForCall

func (fake *Bar) SetOutputArgsForCall(i int) io.Writer

func (*Bar) SetOutputCallCount

func (fake *Bar) SetOutputCallCount() int

func (*Bar) SetOutputCalls

func (fake *Bar) SetOutputCalls(stub func(io.Writer))

func (*Bar) SetTotal

func (fake *Bar) SetTotal(arg1 int64)

func (*Bar) SetTotalArgsForCall

func (fake *Bar) SetTotalArgsForCall(i int) int64

func (*Bar) SetTotalCallCount

func (fake *Bar) SetTotalCallCount() int

func (*Bar) SetTotalCalls

func (fake *Bar) SetTotalCalls(stub func(int64))

type DownloadLinkFetcher

type DownloadLinkFetcher struct {
	NewDownloadLinkStub func() (string, error)
	// contains filtered or unexported fields
}

func (*DownloadLinkFetcher) Invocations

func (fake *DownloadLinkFetcher) Invocations() map[string][][]interface{}
func (fake *DownloadLinkFetcher) NewDownloadLink() (string, error)

func (*DownloadLinkFetcher) NewDownloadLinkCallCount

func (fake *DownloadLinkFetcher) NewDownloadLinkCallCount() int

func (*DownloadLinkFetcher) NewDownloadLinkReturns

func (fake *DownloadLinkFetcher) NewDownloadLinkReturns(result1 string, result2 error)

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

type Ranger struct {
	BuildRangeStub func(int64) ([]download.Range, error)
	// contains filtered or unexported fields
}

func (*Ranger) BuildRange

func (fake *Ranger) BuildRange(arg1 int64) ([]download.Range, error)

func (*Ranger) BuildRangeArgsForCall

func (fake *Ranger) BuildRangeArgsForCall(i int) int64

func (*Ranger) BuildRangeCallCount

func (fake *Ranger) BuildRangeCallCount() int

func (*Ranger) BuildRangeCalls

func (fake *Ranger) BuildRangeCalls(stub func(int64) ([]download.Range, error))

func (*Ranger) BuildRangeReturns

func (fake *Ranger) BuildRangeReturns(result1 []download.Range, result2 error)

func (*Ranger) BuildRangeReturnsOnCall

func (fake *Ranger) BuildRangeReturnsOnCall(i int, result1 []download.Range, result2 error)

func (*Ranger) Invocations

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

Jump to

Keyboard shortcuts

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