heptane

package
v0.0.0-...-bed264f Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2019 License: GPL-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Mock implementation of CacheProvider.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	// contains filtered or unexported fields
}

Cache implements CacheProvider.

func (*Cache) Access

func (p *Cache) Access(a c.CacheAccess) error

Access implements CacheProvider.

func (*Cache) AccessSlice

func (p *Cache) AccessSlice(aa []c.CacheAccess) (errs []error)

AccessSlice implements CacheProvider.

func (*Cache) Mock

func (p *Cache) Mock(a c.CacheAccess, err error)

Mock ensures the following calls to Access() with the given input fields of CacheAccess will return the given output fields of CacheAccess and the given error.

Jump to

Keyboard shortcuts

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