fakes

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

This file was generated by counterfeiter

This file was generated by counterfeiter

This file was generated by counterfeiter

This file was generated by counterfeiter

This file was generated by counterfeiter

This file was generated by counterfeiter

This file was generated by counterfeiter

This file was generated by counterfeiter

This file was generated by counterfeiter

This file was generated by counterfeiter

This file was generated by counterfeiter

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chunker

type Chunker struct {
	ChunkStub func(allPolicies []models.Policy) [][]models.Policy
	// contains filtered or unexported fields
}

func (*Chunker) Chunk

func (fake *Chunker) Chunk(allPolicies []models.Policy) [][]models.Policy

func (*Chunker) ChunkArgsForCall

func (fake *Chunker) ChunkArgsForCall(i int) []models.Policy

func (*Chunker) ChunkCallCount

func (fake *Chunker) ChunkCallCount() int

func (*Chunker) ChunkReturns

func (fake *Chunker) ChunkReturns(result1 [][]models.Policy)

func (*Chunker) ChunkReturnsOnCall

func (fake *Chunker) ChunkReturnsOnCall(i int, result1 [][]models.Policy)

func (*Chunker) Invocations

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

type Datastore

type Datastore struct {
	AddStub func(handle, ip string, metadata map[string]interface{}) error

	DeleteStub func(handle string) (datastore.Container, error)

	ReadAllStub func() (map[string]datastore.Container, error)
	// contains filtered or unexported fields
}

func (*Datastore) Add

func (fake *Datastore) Add(handle string, ip string, metadata map[string]interface{}) error

func (*Datastore) AddArgsForCall

func (fake *Datastore) AddArgsForCall(i int) (string, string, map[string]interface{})

func (*Datastore) AddCallCount

func (fake *Datastore) AddCallCount() int

func (*Datastore) AddReturns

func (fake *Datastore) AddReturns(result1 error)

func (*Datastore) AddReturnsOnCall

func (fake *Datastore) AddReturnsOnCall(i int, result1 error)

func (*Datastore) Delete

func (fake *Datastore) Delete(handle string) (datastore.Container, error)

func (*Datastore) DeleteArgsForCall

func (fake *Datastore) DeleteArgsForCall(i int) string

func (*Datastore) DeleteCallCount

func (fake *Datastore) DeleteCallCount() int

func (*Datastore) DeleteReturns

func (fake *Datastore) DeleteReturns(result1 datastore.Container, result2 error)

func (*Datastore) DeleteReturnsOnCall

func (fake *Datastore) DeleteReturnsOnCall(i int, result1 datastore.Container, result2 error)

func (*Datastore) Invocations

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

func (*Datastore) ReadAll

func (fake *Datastore) ReadAll() (map[string]datastore.Container, error)

func (*Datastore) ReadAllCallCount

func (fake *Datastore) ReadAllCallCount() int

func (*Datastore) ReadAllReturns

func (fake *Datastore) ReadAllReturns(result1 map[string]datastore.Container, result2 error)

func (*Datastore) ReadAllReturnsOnCall

func (fake *Datastore) ReadAllReturnsOnCall(i int, result1 map[string]datastore.Container, result2 error)

type ExternalPolicyClient

type ExternalPolicyClient struct {
	GetPoliciesStub func(token string) ([]models.Policy, error)

	GetPoliciesByIDStub func(token string, ids ...string) ([]models.Policy, error)

	DeletePoliciesStub func(token string, policies []models.Policy) error

	AddPoliciesStub func(token string, policies []models.Policy) error
	// contains filtered or unexported fields
}

func (*ExternalPolicyClient) AddPolicies

func (fake *ExternalPolicyClient) AddPolicies(token string, policies []models.Policy) error

func (*ExternalPolicyClient) AddPoliciesArgsForCall

func (fake *ExternalPolicyClient) AddPoliciesArgsForCall(i int) (string, []models.Policy)

func (*ExternalPolicyClient) AddPoliciesCallCount

func (fake *ExternalPolicyClient) AddPoliciesCallCount() int

func (*ExternalPolicyClient) AddPoliciesReturns

func (fake *ExternalPolicyClient) AddPoliciesReturns(result1 error)

func (*ExternalPolicyClient) AddPoliciesReturnsOnCall

func (fake *ExternalPolicyClient) AddPoliciesReturnsOnCall(i int, result1 error)

func (*ExternalPolicyClient) DeletePolicies

func (fake *ExternalPolicyClient) DeletePolicies(token string, policies []models.Policy) error

func (*ExternalPolicyClient) DeletePoliciesArgsForCall

func (fake *ExternalPolicyClient) DeletePoliciesArgsForCall(i int) (string, []models.Policy)

func (*ExternalPolicyClient) DeletePoliciesCallCount

func (fake *ExternalPolicyClient) DeletePoliciesCallCount() int

func (*ExternalPolicyClient) DeletePoliciesReturns

func (fake *ExternalPolicyClient) DeletePoliciesReturns(result1 error)

func (*ExternalPolicyClient) DeletePoliciesReturnsOnCall

func (fake *ExternalPolicyClient) DeletePoliciesReturnsOnCall(i int, result1 error)

func (*ExternalPolicyClient) GetPolicies

func (fake *ExternalPolicyClient) GetPolicies(token string) ([]models.Policy, error)

func (*ExternalPolicyClient) GetPoliciesArgsForCall

func (fake *ExternalPolicyClient) GetPoliciesArgsForCall(i int) string

func (*ExternalPolicyClient) GetPoliciesByID

func (fake *ExternalPolicyClient) GetPoliciesByID(token string, ids ...string) ([]models.Policy, error)

func (*ExternalPolicyClient) GetPoliciesByIDArgsForCall

func (fake *ExternalPolicyClient) GetPoliciesByIDArgsForCall(i int) (string, []string)

func (*ExternalPolicyClient) GetPoliciesByIDCallCount

func (fake *ExternalPolicyClient) GetPoliciesByIDCallCount() int

func (*ExternalPolicyClient) GetPoliciesByIDReturns

func (fake *ExternalPolicyClient) GetPoliciesByIDReturns(result1 []models.Policy, result2 error)

func (*ExternalPolicyClient) GetPoliciesByIDReturnsOnCall

func (fake *ExternalPolicyClient) GetPoliciesByIDReturnsOnCall(i int, result1 []models.Policy, result2 error)

func (*ExternalPolicyClient) GetPoliciesCallCount

func (fake *ExternalPolicyClient) GetPoliciesCallCount() int

func (*ExternalPolicyClient) GetPoliciesReturns

func (fake *ExternalPolicyClient) GetPoliciesReturns(result1 []models.Policy, result2 error)

func (*ExternalPolicyClient) GetPoliciesReturnsOnCall

func (fake *ExternalPolicyClient) GetPoliciesReturnsOnCall(i int, result1 []models.Policy, result2 error)

func (*ExternalPolicyClient) Invocations

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

type FileLocker

type FileLocker struct {
	OpenStub func() (*os.File, error)
	// contains filtered or unexported fields
}

func (*FileLocker) Invocations

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

func (*FileLocker) Open

func (fake *FileLocker) Open() (*os.File, error)

func (*FileLocker) OpenCallCount

func (fake *FileLocker) OpenCallCount() int

func (*FileLocker) OpenReturns

func (fake *FileLocker) OpenReturns(result1 *os.File, result2 error)

func (*FileLocker) OpenReturnsOnCall

func (fake *FileLocker) OpenReturnsOnCall(i int, result1 *os.File, result2 error)

type IPTables

type IPTables struct {
	ExistsStub func(table, chain string, rulespec ...string) (bool, error)

	InsertStub func(table, chain string, pos int, rulespec ...string) error

	AppendUniqueStub func(table, chain string, rulespec ...string) error

	DeleteStub func(table, chain string, rulespec ...string) error

	ListStub func(table, chain string) ([]string, error)

	NewChainStub func(table, chain string) error

	ClearChainStub func(table, chain string) error

	DeleteChainStub func(table, chain string) error
	// contains filtered or unexported fields
}

func (*IPTables) AppendUnique

func (fake *IPTables) AppendUnique(table string, chain string, rulespec ...string) error

func (*IPTables) AppendUniqueArgsForCall

func (fake *IPTables) AppendUniqueArgsForCall(i int) (string, string, []string)

func (*IPTables) AppendUniqueCallCount

func (fake *IPTables) AppendUniqueCallCount() int

func (*IPTables) AppendUniqueReturns

func (fake *IPTables) AppendUniqueReturns(result1 error)

func (*IPTables) AppendUniqueReturnsOnCall

func (fake *IPTables) AppendUniqueReturnsOnCall(i int, result1 error)

func (*IPTables) ClearChain

func (fake *IPTables) ClearChain(table string, chain string) error

func (*IPTables) ClearChainArgsForCall

func (fake *IPTables) ClearChainArgsForCall(i int) (string, string)

func (*IPTables) ClearChainCallCount

func (fake *IPTables) ClearChainCallCount() int

func (*IPTables) ClearChainReturns

func (fake *IPTables) ClearChainReturns(result1 error)

func (*IPTables) ClearChainReturnsOnCall

func (fake *IPTables) ClearChainReturnsOnCall(i int, result1 error)

func (*IPTables) Delete

func (fake *IPTables) Delete(table string, chain string, rulespec ...string) error

func (*IPTables) DeleteArgsForCall

func (fake *IPTables) DeleteArgsForCall(i int) (string, string, []string)

func (*IPTables) DeleteCallCount

func (fake *IPTables) DeleteCallCount() int

func (*IPTables) DeleteChain

func (fake *IPTables) DeleteChain(table string, chain string) error

func (*IPTables) DeleteChainArgsForCall

func (fake *IPTables) DeleteChainArgsForCall(i int) (string, string)

func (*IPTables) DeleteChainCallCount

func (fake *IPTables) DeleteChainCallCount() int

func (*IPTables) DeleteChainReturns

func (fake *IPTables) DeleteChainReturns(result1 error)

func (*IPTables) DeleteChainReturnsOnCall

func (fake *IPTables) DeleteChainReturnsOnCall(i int, result1 error)

func (*IPTables) DeleteReturns

func (fake *IPTables) DeleteReturns(result1 error)

func (*IPTables) DeleteReturnsOnCall

func (fake *IPTables) DeleteReturnsOnCall(i int, result1 error)

func (*IPTables) Exists

func (fake *IPTables) Exists(table string, chain string, rulespec ...string) (bool, error)

func (*IPTables) ExistsArgsForCall

func (fake *IPTables) ExistsArgsForCall(i int) (string, string, []string)

func (*IPTables) ExistsCallCount

func (fake *IPTables) ExistsCallCount() int

func (*IPTables) ExistsReturns

func (fake *IPTables) ExistsReturns(result1 bool, result2 error)

func (*IPTables) ExistsReturnsOnCall

func (fake *IPTables) ExistsReturnsOnCall(i int, result1 bool, result2 error)

func (*IPTables) Insert

func (fake *IPTables) Insert(table string, chain string, pos int, rulespec ...string) error

func (*IPTables) InsertArgsForCall

func (fake *IPTables) InsertArgsForCall(i int) (string, string, int, []string)

func (*IPTables) InsertCallCount

func (fake *IPTables) InsertCallCount() int

func (*IPTables) InsertReturns

func (fake *IPTables) InsertReturns(result1 error)

func (*IPTables) InsertReturnsOnCall

func (fake *IPTables) InsertReturnsOnCall(i int, result1 error)

func (*IPTables) Invocations

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

func (*IPTables) List

func (fake *IPTables) List(table string, chain string) ([]string, error)

func (*IPTables) ListArgsForCall

func (fake *IPTables) ListArgsForCall(i int) (string, string)

func (*IPTables) ListCallCount

func (fake *IPTables) ListCallCount() int

func (*IPTables) ListReturns

func (fake *IPTables) ListReturns(result1 []string, result2 error)

func (*IPTables) ListReturnsOnCall

func (fake *IPTables) ListReturnsOnCall(i int, result1 []string, result2 error)

func (*IPTables) NewChain

func (fake *IPTables) NewChain(table string, chain string) error

func (*IPTables) NewChainArgsForCall

func (fake *IPTables) NewChainArgsForCall(i int) (string, string)

func (*IPTables) NewChainCallCount

func (fake *IPTables) NewChainCallCount() int

func (*IPTables) NewChainReturns

func (fake *IPTables) NewChainReturns(result1 error)

func (*IPTables) NewChainReturnsOnCall

func (fake *IPTables) NewChainReturnsOnCall(i int, result1 error)

type IPTablesAdapter

type IPTablesAdapter struct {
	ExistsStub func(table, chain string, rulespec rules.IPTablesRule) (bool, error)

	DeleteStub func(table, chain string, rulespec rules.IPTablesRule) error

	ListStub func(table, chain string) ([]string, error)

	NewChainStub func(table, chain string) error

	ClearChainStub func(table, chain string) error

	DeleteChainStub func(table, chain string) error

	BulkInsertStub func(table, chain string, pos int, rulespec ...rules.IPTablesRule) error

	BulkAppendStub func(table, chain string, rulespec ...rules.IPTablesRule) error
	// contains filtered or unexported fields
}

func (*IPTablesAdapter) BulkAppend

func (fake *IPTablesAdapter) BulkAppend(table string, chain string, rulespec ...rules.IPTablesRule) error

func (*IPTablesAdapter) BulkAppendArgsForCall

func (fake *IPTablesAdapter) BulkAppendArgsForCall(i int) (string, string, []rules.IPTablesRule)

func (*IPTablesAdapter) BulkAppendCallCount

func (fake *IPTablesAdapter) BulkAppendCallCount() int

func (*IPTablesAdapter) BulkAppendReturns

func (fake *IPTablesAdapter) BulkAppendReturns(result1 error)

func (*IPTablesAdapter) BulkAppendReturnsOnCall

func (fake *IPTablesAdapter) BulkAppendReturnsOnCall(i int, result1 error)

func (*IPTablesAdapter) BulkInsert

func (fake *IPTablesAdapter) BulkInsert(table string, chain string, pos int, rulespec ...rules.IPTablesRule) error

func (*IPTablesAdapter) BulkInsertArgsForCall

func (fake *IPTablesAdapter) BulkInsertArgsForCall(i int) (string, string, int, []rules.IPTablesRule)

func (*IPTablesAdapter) BulkInsertCallCount

func (fake *IPTablesAdapter) BulkInsertCallCount() int

func (*IPTablesAdapter) BulkInsertReturns

func (fake *IPTablesAdapter) BulkInsertReturns(result1 error)

func (*IPTablesAdapter) BulkInsertReturnsOnCall

func (fake *IPTablesAdapter) BulkInsertReturnsOnCall(i int, result1 error)

func (*IPTablesAdapter) ClearChain

func (fake *IPTablesAdapter) ClearChain(table string, chain string) error

func (*IPTablesAdapter) ClearChainArgsForCall

func (fake *IPTablesAdapter) ClearChainArgsForCall(i int) (string, string)

func (*IPTablesAdapter) ClearChainCallCount

func (fake *IPTablesAdapter) ClearChainCallCount() int

func (*IPTablesAdapter) ClearChainReturns

func (fake *IPTablesAdapter) ClearChainReturns(result1 error)

func (*IPTablesAdapter) ClearChainReturnsOnCall

func (fake *IPTablesAdapter) ClearChainReturnsOnCall(i int, result1 error)

func (*IPTablesAdapter) Delete

func (fake *IPTablesAdapter) Delete(table string, chain string, rulespec rules.IPTablesRule) error

func (*IPTablesAdapter) DeleteArgsForCall

func (fake *IPTablesAdapter) DeleteArgsForCall(i int) (string, string, rules.IPTablesRule)

func (*IPTablesAdapter) DeleteCallCount

func (fake *IPTablesAdapter) DeleteCallCount() int

func (*IPTablesAdapter) DeleteChain

func (fake *IPTablesAdapter) DeleteChain(table string, chain string) error

func (*IPTablesAdapter) DeleteChainArgsForCall

func (fake *IPTablesAdapter) DeleteChainArgsForCall(i int) (string, string)

func (*IPTablesAdapter) DeleteChainCallCount

func (fake *IPTablesAdapter) DeleteChainCallCount() int

func (*IPTablesAdapter) DeleteChainReturns

func (fake *IPTablesAdapter) DeleteChainReturns(result1 error)

func (*IPTablesAdapter) DeleteChainReturnsOnCall

func (fake *IPTablesAdapter) DeleteChainReturnsOnCall(i int, result1 error)

func (*IPTablesAdapter) DeleteReturns

func (fake *IPTablesAdapter) DeleteReturns(result1 error)

func (*IPTablesAdapter) DeleteReturnsOnCall

func (fake *IPTablesAdapter) DeleteReturnsOnCall(i int, result1 error)

func (*IPTablesAdapter) Exists

func (fake *IPTablesAdapter) Exists(table string, chain string, rulespec rules.IPTablesRule) (bool, error)

func (*IPTablesAdapter) ExistsArgsForCall

func (fake *IPTablesAdapter) ExistsArgsForCall(i int) (string, string, rules.IPTablesRule)

func (*IPTablesAdapter) ExistsCallCount

func (fake *IPTablesAdapter) ExistsCallCount() int

func (*IPTablesAdapter) ExistsReturns

func (fake *IPTablesAdapter) ExistsReturns(result1 bool, result2 error)

func (*IPTablesAdapter) ExistsReturnsOnCall

func (fake *IPTablesAdapter) ExistsReturnsOnCall(i int, result1 bool, result2 error)

func (*IPTablesAdapter) Invocations

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

func (*IPTablesAdapter) List

func (fake *IPTablesAdapter) List(table string, chain string) ([]string, error)

func (*IPTablesAdapter) ListArgsForCall

func (fake *IPTablesAdapter) ListArgsForCall(i int) (string, string)

func (*IPTablesAdapter) ListCallCount

func (fake *IPTablesAdapter) ListCallCount() int

func (*IPTablesAdapter) ListReturns

func (fake *IPTablesAdapter) ListReturns(result1 []string, result2 error)

func (*IPTablesAdapter) ListReturnsOnCall

func (fake *IPTablesAdapter) ListReturnsOnCall(i int, result1 []string, result2 error)

func (*IPTablesAdapter) NewChain

func (fake *IPTablesAdapter) NewChain(table string, chain string) error

func (*IPTablesAdapter) NewChainArgsForCall

func (fake *IPTablesAdapter) NewChainArgsForCall(i int) (string, string)

func (*IPTablesAdapter) NewChainCallCount

func (fake *IPTablesAdapter) NewChainCallCount() int

func (*IPTablesAdapter) NewChainReturns

func (fake *IPTablesAdapter) NewChainReturns(result1 error)

func (*IPTablesAdapter) NewChainReturnsOnCall

func (fake *IPTablesAdapter) NewChainReturnsOnCall(i int, result1 error)

type Locker

type Locker struct {
	LockStub func() error

	UnlockStub func() error
	// contains filtered or unexported fields
}

func (*Locker) Invocations

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

func (*Locker) Lock

func (fake *Locker) Lock() error

func (*Locker) LockCallCount

func (fake *Locker) LockCallCount() int

func (*Locker) LockReturns

func (fake *Locker) LockReturns(result1 error)

func (*Locker) LockReturnsOnCall

func (fake *Locker) LockReturnsOnCall(i int, result1 error)

func (*Locker) Unlock

func (fake *Locker) Unlock() error

func (*Locker) UnlockCallCount

func (fake *Locker) UnlockCallCount() int

func (*Locker) UnlockReturns

func (fake *Locker) UnlockReturns(result1 error)

func (*Locker) UnlockReturnsOnCall

func (fake *Locker) UnlockReturnsOnCall(i int, result1 error)

type OverwriteableFile

type OverwriteableFile struct {
	ReadStub func(p []byte) (n int, err error)

	WriteStub func(p []byte) (n int, err error)

	SeekStub func(offset int64, whence int) (int64, error)

	TruncateStub func(size int64) error
	// contains filtered or unexported fields
}

func (*OverwriteableFile) Invocations

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

func (*OverwriteableFile) Read

func (fake *OverwriteableFile) Read(p []byte) (n int, err error)

func (*OverwriteableFile) ReadArgsForCall

func (fake *OverwriteableFile) ReadArgsForCall(i int) []byte

func (*OverwriteableFile) ReadCallCount

func (fake *OverwriteableFile) ReadCallCount() int

func (*OverwriteableFile) ReadReturns

func (fake *OverwriteableFile) ReadReturns(result1 int, result2 error)

func (*OverwriteableFile) ReadReturnsOnCall

func (fake *OverwriteableFile) ReadReturnsOnCall(i int, result1 int, result2 error)

func (*OverwriteableFile) Seek

func (fake *OverwriteableFile) Seek(offset int64, whence int) (int64, error)

func (*OverwriteableFile) SeekArgsForCall

func (fake *OverwriteableFile) SeekArgsForCall(i int) (int64, int)

func (*OverwriteableFile) SeekCallCount

func (fake *OverwriteableFile) SeekCallCount() int

func (*OverwriteableFile) SeekReturns

func (fake *OverwriteableFile) SeekReturns(result1 int64, result2 error)

func (*OverwriteableFile) SeekReturnsOnCall

func (fake *OverwriteableFile) SeekReturnsOnCall(i int, result1 int64, result2 error)

func (*OverwriteableFile) Truncate

func (fake *OverwriteableFile) Truncate(size int64) error

func (*OverwriteableFile) TruncateArgsForCall

func (fake *OverwriteableFile) TruncateArgsForCall(i int) int64

func (*OverwriteableFile) TruncateCallCount

func (fake *OverwriteableFile) TruncateCallCount() int

func (*OverwriteableFile) TruncateReturns

func (fake *OverwriteableFile) TruncateReturns(result1 error)

func (*OverwriteableFile) TruncateReturnsOnCall

func (fake *OverwriteableFile) TruncateReturnsOnCall(i int, result1 error)

func (*OverwriteableFile) Write

func (fake *OverwriteableFile) Write(p []byte) (n int, err error)

func (*OverwriteableFile) WriteArgsForCall

func (fake *OverwriteableFile) WriteArgsForCall(i int) []byte

func (*OverwriteableFile) WriteCallCount

func (fake *OverwriteableFile) WriteCallCount() int

func (*OverwriteableFile) WriteReturns

func (fake *OverwriteableFile) WriteReturns(result1 int, result2 error)

func (*OverwriteableFile) WriteReturnsOnCall

func (fake *OverwriteableFile) WriteReturnsOnCall(i int, result1 int, result2 error)

type Restorer

type Restorer struct {
	RestoreStub func(ruleState string) error
	// contains filtered or unexported fields
}

func (*Restorer) Invocations

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

func (*Restorer) Restore

func (fake *Restorer) Restore(ruleState string) error

func (*Restorer) RestoreArgsForCall

func (fake *Restorer) RestoreArgsForCall(i int) string

func (*Restorer) RestoreCallCount

func (fake *Restorer) RestoreCallCount() int

func (*Restorer) RestoreReturns

func (fake *Restorer) RestoreReturns(result1 error)

func (*Restorer) RestoreReturnsOnCall

func (fake *Restorer) RestoreReturnsOnCall(i int, result1 error)

type Serializer

type Serializer struct {
	DecodeAllStub func(file io.ReadSeeker, outData interface{}) error

	EncodeAndOverwriteStub func(file serial.OverwriteableFile, outData interface{}) error
	// contains filtered or unexported fields
}

func (*Serializer) DecodeAll

func (fake *Serializer) DecodeAll(file io.ReadSeeker, outData interface{}) error

func (*Serializer) DecodeAllArgsForCall

func (fake *Serializer) DecodeAllArgsForCall(i int) (io.ReadSeeker, interface{})

func (*Serializer) DecodeAllCallCount

func (fake *Serializer) DecodeAllCallCount() int

func (*Serializer) DecodeAllReturns

func (fake *Serializer) DecodeAllReturns(result1 error)

func (*Serializer) DecodeAllReturnsOnCall

func (fake *Serializer) DecodeAllReturnsOnCall(i int, result1 error)

func (*Serializer) EncodeAndOverwrite

func (fake *Serializer) EncodeAndOverwrite(file serial.OverwriteableFile, outData interface{}) error

func (*Serializer) EncodeAndOverwriteArgsForCall

func (fake *Serializer) EncodeAndOverwriteArgsForCall(i int) (serial.OverwriteableFile, interface{})

func (*Serializer) EncodeAndOverwriteCallCount

func (fake *Serializer) EncodeAndOverwriteCallCount() int

func (*Serializer) EncodeAndOverwriteReturns

func (fake *Serializer) EncodeAndOverwriteReturns(result1 error)

func (*Serializer) EncodeAndOverwriteReturnsOnCall

func (fake *Serializer) EncodeAndOverwriteReturnsOnCall(i int, result1 error)

func (*Serializer) Invocations

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

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

Jump to

Keyboard shortcuts

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