juju: github.com/juju/juju/state/statetest Index | Files

package statetest

import "github.com/juju/juju/state/statetest"


Package Files


type StubPersistence Uses

type StubPersistence struct {

    RunFunc func(jujutxn.TransactionSource) error

    ReturnAll interface{} // homegenous(?) list of doc struct (not pointers)
    ReturnOne interface{} // a doc struct (not a pointer)

    ReturnApplicationExistsOps       []txn.Op
    ReturnIncCharmModifiedVersionOps []txn.Op

func NewStubPersistence Uses

func NewStubPersistence(stub *testing.Stub) *StubPersistence

func (*StubPersistence) All Uses

func (s *StubPersistence) All(collName string, query, docs interface{}) error

func (*StubPersistence) ApplicationExistsOps Uses

func (s *StubPersistence) ApplicationExistsOps(applicationID string) []txn.Op

func (*StubPersistence) IncCharmModifiedVersionOps Uses

func (s *StubPersistence) IncCharmModifiedVersionOps(applicationID string) []txn.Op

func (*StubPersistence) One Uses

func (s *StubPersistence) One(collName, id string, doc interface{}) error

func (*StubPersistence) Run Uses

func (s *StubPersistence) Run(buildTxn jujutxn.TransactionSource) error

func (*StubPersistence) RunTransaction Uses

func (s *StubPersistence) RunTransaction(ops []txn.Op) error

Package statetest imports 5 packages (graph). Updated 2018-06-29. Refresh now. Tools for package owners. This is an inactive package (no imports and no commits in at least two years).