fakes

package
v0.0.0-...-dd9aec0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

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 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 FileLocker

type FileLocker struct {
	OpenStub func() (filelock.LockedFile, error)
	// contains filtered or unexported fields
}

func (*FileLocker) Invocations

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

func (*FileLocker) Open

func (fake *FileLocker) Open() (filelock.LockedFile, error)

func (*FileLocker) OpenCallCount

func (fake *FileLocker) OpenCallCount() int

func (*FileLocker) OpenReturns

func (fake *FileLocker) OpenReturns(result1 filelock.LockedFile, result2 error)

func (*FileLocker) OpenReturnsOnCall

func (fake *FileLocker) OpenReturnsOnCall(i int, result1 filelock.LockedFile, result2 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 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{}

Jump to

Keyboard shortcuts

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