mock

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const UnknownSavepointName = "UNKNOWN_SAVEPOINT_NAME"

UnknownSavepointName is the name used mapping savepoint names fails

Variables

This section is empty.

Functions

This section is empty.

Types

type Savepointer

type Savepointer struct {
	sync.Mutex
	io.Writer
	// contains filtered or unexported fields
}

Savepointer implements the savepointers.Savepointer interface for usage with tests.

func NewSavepointer

func NewSavepointer(writer io.Writer, release bool) *Savepointer

NewSavepointer creates a new Savepointer

func (*Savepointer) Create

func (sp *Savepointer) Create(name string) string

Create creates a new savepoint with the given name

func (*Savepointer) Release

func (sp *Savepointer) Release(name string) string

Release releases the named savepoint

func (*Savepointer) Rollback

func (sp *Savepointer) Rollback(name string) string

Rollback rollsback the named savepoint

Jump to

Keyboard shortcuts

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