fakes

package
v0.0.140 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2016 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CalculateInput

type CalculateInput struct {
	Sha1 string
	Err  error
}

type FakeSha1Calculator

type FakeSha1Calculator struct {
	CalculateStringInputs map[string]string
	// contains filtered or unexported fields
}

func NewFakeSha1Calculator

func NewFakeSha1Calculator() *FakeSha1Calculator

func (*FakeSha1Calculator) Calculate

func (c *FakeSha1Calculator) Calculate(path string) (string, error)

func (*FakeSha1Calculator) CalculateString

func (c *FakeSha1Calculator) CalculateString(data string) string

func (*FakeSha1Calculator) SetCalculateBehavior

func (c *FakeSha1Calculator) SetCalculateBehavior(calculateInputs map[string]CalculateInput)

Jump to

Keyboard shortcuts

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