sourcefakes

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

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 FakeSource

type FakeSource struct {
	CommitAtStub func(string, time.Time) (string, error)

	FileStub func(string, string, string) (string, bool, error)

	FlaggedLatestStub func(string) (source.Release, error)

	GetJSONStub func(string) (map[string]any, error)

	PathHistoryStub func(string, string, time.Time) ([]source.Commit, error)

	ReleasesStub func(string, string) ([]source.Release, error)

	TagCommitStub func(string, string) (string, error)
	// contains filtered or unexported fields
}

func (*FakeSource) CallOrder

func (fake *FakeSource) CallOrder() []string

func (*FakeSource) CommitAt

func (fake *FakeSource) CommitAt(arg1 string, arg2 time.Time) (string, error)

func (*FakeSource) CommitAtArgs

func (fake *FakeSource) CommitAtArgs() []FakeSourceCommitAtArgs

func (*FakeSource) CommitAtArgsForCall

func (fake *FakeSource) CommitAtArgsForCall(i int) (string, time.Time)

func (*FakeSource) CommitAtCallCount

func (fake *FakeSource) CommitAtCallCount() int

func (*FakeSource) CommitAtCalls

func (fake *FakeSource) CommitAtCalls(stub func(string, time.Time) (string, error))

func (*FakeSource) CommitAtReturns

func (fake *FakeSource) CommitAtReturns(result1 string, result2 error)

func (*FakeSource) CommitAtReturnsOnCall

func (fake *FakeSource) CommitAtReturnsOnCall(i int, result1 string, result2 error)

func (*FakeSource) File

func (fake *FakeSource) File(arg1 string, arg2 string, arg3 string) (string, bool, error)

func (*FakeSource) FileArgs

func (fake *FakeSource) FileArgs() []FakeSourceFileArgs

func (*FakeSource) FileArgsForCall

func (fake *FakeSource) FileArgsForCall(i int) (string, string, string)

func (*FakeSource) FileCallCount

func (fake *FakeSource) FileCallCount() int

func (*FakeSource) FileCalls

func (fake *FakeSource) FileCalls(stub func(string, string, string) (string, bool, error))

func (*FakeSource) FileReturns

func (fake *FakeSource) FileReturns(result1 string, result2 bool, result3 error)

func (*FakeSource) FileReturnsOnCall

func (fake *FakeSource) FileReturnsOnCall(i int, result1 string, result2 bool, result3 error)

func (*FakeSource) FlaggedLatest

func (fake *FakeSource) FlaggedLatest(arg1 string) (source.Release, error)

func (*FakeSource) FlaggedLatestArgs

func (fake *FakeSource) FlaggedLatestArgs() []FakeSourceFlaggedLatestArgs

func (*FakeSource) FlaggedLatestArgsForCall

func (fake *FakeSource) FlaggedLatestArgsForCall(i int) string

func (*FakeSource) FlaggedLatestCallCount

func (fake *FakeSource) FlaggedLatestCallCount() int

func (*FakeSource) FlaggedLatestCalls

func (fake *FakeSource) FlaggedLatestCalls(stub func(string) (source.Release, error))

func (*FakeSource) FlaggedLatestReturns

func (fake *FakeSource) FlaggedLatestReturns(result1 source.Release, result2 error)

func (*FakeSource) FlaggedLatestReturnsOnCall

func (fake *FakeSource) FlaggedLatestReturnsOnCall(i int, result1 source.Release, result2 error)

func (*FakeSource) GetJSON

func (fake *FakeSource) GetJSON(arg1 string) (map[string]any, error)

func (*FakeSource) GetJSONArgs

func (fake *FakeSource) GetJSONArgs() []FakeSourceGetJSONArgs

func (*FakeSource) GetJSONArgsForCall

func (fake *FakeSource) GetJSONArgsForCall(i int) string

func (*FakeSource) GetJSONCallCount

func (fake *FakeSource) GetJSONCallCount() int

func (*FakeSource) GetJSONCalls

func (fake *FakeSource) GetJSONCalls(stub func(string) (map[string]any, error))

func (*FakeSource) GetJSONReturns

func (fake *FakeSource) GetJSONReturns(result1 map[string]any, result2 error)

func (*FakeSource) GetJSONReturnsOnCall

func (fake *FakeSource) GetJSONReturnsOnCall(i int, result1 map[string]any, result2 error)

func (*FakeSource) Invocations

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

func (*FakeSource) PathHistory

func (fake *FakeSource) PathHistory(arg1 string, arg2 string, arg3 time.Time) ([]source.Commit, error)

func (*FakeSource) PathHistoryArgs

func (fake *FakeSource) PathHistoryArgs() []FakeSourcePathHistoryArgs

func (*FakeSource) PathHistoryArgsForCall

func (fake *FakeSource) PathHistoryArgsForCall(i int) (string, string, time.Time)

func (*FakeSource) PathHistoryCallCount

func (fake *FakeSource) PathHistoryCallCount() int

func (*FakeSource) PathHistoryCalls

func (fake *FakeSource) PathHistoryCalls(stub func(string, string, time.Time) ([]source.Commit, error))

func (*FakeSource) PathHistoryReturns

func (fake *FakeSource) PathHistoryReturns(result1 []source.Commit, result2 error)

func (*FakeSource) PathHistoryReturnsOnCall

func (fake *FakeSource) PathHistoryReturnsOnCall(i int, result1 []source.Commit, result2 error)

func (*FakeSource) Releases

func (fake *FakeSource) Releases(arg1 string, arg2 string) ([]source.Release, error)

func (*FakeSource) ReleasesArgs

func (fake *FakeSource) ReleasesArgs() []FakeSourceReleasesArgs

func (*FakeSource) ReleasesArgsForCall

func (fake *FakeSource) ReleasesArgsForCall(i int) (string, string)

func (*FakeSource) ReleasesCallCount

func (fake *FakeSource) ReleasesCallCount() int

func (*FakeSource) ReleasesCalls

func (fake *FakeSource) ReleasesCalls(stub func(string, string) ([]source.Release, error))

func (*FakeSource) ReleasesReturns

func (fake *FakeSource) ReleasesReturns(result1 []source.Release, result2 error)

func (*FakeSource) ReleasesReturnsOnCall

func (fake *FakeSource) ReleasesReturnsOnCall(i int, result1 []source.Release, result2 error)

func (*FakeSource) TagCommit

func (fake *FakeSource) TagCommit(arg1 string, arg2 string) (string, error)

func (*FakeSource) TagCommitArgs

func (fake *FakeSource) TagCommitArgs() []FakeSourceTagCommitArgs

func (*FakeSource) TagCommitArgsForCall

func (fake *FakeSource) TagCommitArgsForCall(i int) (string, string)

func (*FakeSource) TagCommitCallCount

func (fake *FakeSource) TagCommitCallCount() int

func (*FakeSource) TagCommitCalls

func (fake *FakeSource) TagCommitCalls(stub func(string, string) (string, error))

func (*FakeSource) TagCommitReturns

func (fake *FakeSource) TagCommitReturns(result1 string, result2 error)

func (*FakeSource) TagCommitReturnsOnCall

func (fake *FakeSource) TagCommitReturnsOnCall(i int, result1 string, result2 error)

type FakeSourceCommitAtArgs

type FakeSourceCommitAtArgs struct {
	Arg1 string
	Arg2 time.Time
}

FakeSourceCommitAtArgs holds the arguments of one call to CommitAt.

type FakeSourceFileArgs

type FakeSourceFileArgs struct {
	Arg1 string
	Arg2 string
	Arg3 string
}

FakeSourceFileArgs holds the arguments of one call to File.

type FakeSourceFlaggedLatestArgs

type FakeSourceFlaggedLatestArgs struct {
	Arg1 string
}

FakeSourceFlaggedLatestArgs holds the arguments of one call to FlaggedLatest.

type FakeSourceGetJSONArgs

type FakeSourceGetJSONArgs struct {
	Arg1 string
}

FakeSourceGetJSONArgs holds the arguments of one call to GetJSON.

type FakeSourcePathHistoryArgs

type FakeSourcePathHistoryArgs struct {
	Arg1 string
	Arg2 string
	Arg3 time.Time
}

FakeSourcePathHistoryArgs holds the arguments of one call to PathHistory.

type FakeSourceReleasesArgs

type FakeSourceReleasesArgs struct {
	Arg1 string
	Arg2 string
}

FakeSourceReleasesArgs holds the arguments of one call to Releases.

type FakeSourceTagCommitArgs

type FakeSourceTagCommitArgs struct {
	Arg1 string
	Arg2 string
}

FakeSourceTagCommitArgs holds the arguments of one call to TagCommit.

Jump to

Keyboard shortcuts

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