Documentation
¶
Overview ¶
Package storagetest implements simple types and utility functions to help test implementations of storage.S.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DummyStorage ¶
DummyStorage returns a storage.Storage that does nothing.
Types ¶
type ExpectDownloadCapturePut ¶
type ExpectDownloadCapturePut struct { // Expectations for calls to Download Ref []string Data [][]byte // Storage for calls to Put PutRef []string PutContents [][]byte // contains filtered or unexported fields }
ExpectDownloadCapturePut inspects all calls to Download with the given Ref and if it matches, it returns Data. Ref matches are strictly sequential. It also captures all Put requests.
func (*ExpectDownloadCapturePut) Download ¶
func (e *ExpectDownloadCapturePut) Download(ref string) ([]byte, error)
Download implements storage.Storage.
Click to show internal directories.
Click to hide internal directories.