fakes

package
v0.0.0-...-045538f Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2016 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

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 FakeCryptor

type FakeCryptor struct {
	EncryptStub func(plaintext []byte) (encryption.Encrypted, error)

	DecryptStub func(encrypted encryption.Encrypted) ([]byte, error)
	// contains filtered or unexported fields
}

func (*FakeCryptor) Decrypt

func (fake *FakeCryptor) Decrypt(encrypted encryption.Encrypted) ([]byte, error)

func (*FakeCryptor) DecryptArgsForCall

func (fake *FakeCryptor) DecryptArgsForCall(i int) encryption.Encrypted

func (*FakeCryptor) DecryptCallCount

func (fake *FakeCryptor) DecryptCallCount() int

func (*FakeCryptor) DecryptReturns

func (fake *FakeCryptor) DecryptReturns(result1 []byte, result2 error)

func (*FakeCryptor) Encrypt

func (fake *FakeCryptor) Encrypt(plaintext []byte) (encryption.Encrypted, error)

func (*FakeCryptor) EncryptArgsForCall

func (fake *FakeCryptor) EncryptArgsForCall(i int) []byte

func (*FakeCryptor) EncryptCallCount

func (fake *FakeCryptor) EncryptCallCount() int

func (*FakeCryptor) EncryptReturns

func (fake *FakeCryptor) EncryptReturns(result1 encryption.Encrypted, result2 error)

type FakeKey

type FakeKey struct {
	LabelStub func() string

	BlockStub func() cipher.Block
	// contains filtered or unexported fields
}

func (*FakeKey) Block

func (fake *FakeKey) Block() cipher.Block

func (*FakeKey) BlockCallCount

func (fake *FakeKey) BlockCallCount() int

func (*FakeKey) BlockReturns

func (fake *FakeKey) BlockReturns(result1 cipher.Block)

func (*FakeKey) Label

func (fake *FakeKey) Label() string

func (*FakeKey) LabelCallCount

func (fake *FakeKey) LabelCallCount() int

func (*FakeKey) LabelReturns

func (fake *FakeKey) LabelReturns(result1 string)

Jump to

Keyboard shortcuts

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