mock

package
v1.202405300917.1 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const Anything = mock.Anything

Variables

This section is empty.

Functions

func AnythingOfType

func AnythingOfType(t string) mock.AnythingOfTypeArgument

Types

type AppStructs

type AppStructs struct {
	istructs.IAppStructs
	mock.Mock
}

func (*AppStructs) Records

func (s *AppStructs) Records() istructs.IRecords

type AppStructsProvider

type AppStructsProvider struct {
	mock.Mock
}

func (*AppStructsProvider) AppStructs

func (p *AppStructsProvider) AppStructs(aqn istructs.AppQName) (structs istructs.IAppStructs, err error)

type CUDRow

type CUDRow struct {
	istructs.ICUDRow
	mock.Mock
}

func (*CUDRow) AsBool

func (r *CUDRow) AsBool(name string) bool

func (*CUDRow) AsString

func (r *CUDRow) AsString(name string) string

func (*CUDRow) ID

func (r *CUDRow) ID() istructs.RecordID

func (*CUDRow) QName

func (r *CUDRow) QName() appdef.QName

type Intents

type Intents struct {
	istructs.IIntents
	mock.Mock
}

func (*Intents) NewValue

func (i *Intents) NewValue(key istructs.IStateKeyBuilder) (builder istructs.IStateValueBuilder, err error)

type Object

type Object struct {
	istructs.IObject
	mock.Mock
}

func (*Object) AsInt32

func (o *Object) AsInt32(name string) int32

func (*Object) AsInt64

func (o *Object) AsInt64(name string) int64

func (*Object) AsString

func (o *Object) AsString(name string) string

func (*Object) Children

func (o *Object) Children(container string, cb func(istructs.IObject))

type PLogEvent

type PLogEvent struct {
	istructs.IPLogEvent
	mock.Mock
}

func (*PLogEvent) ArgumentObject

func (e *PLogEvent) ArgumentObject() istructs.IObject

func (*PLogEvent) CUDs

func (e *PLogEvent) CUDs(cb func(istructs.ICUDRow))

func (*PLogEvent) Workspace

func (e *PLogEvent) Workspace() istructs.WSID

type Record

type Record struct {
	istructs.IRecord
	mock.Mock
}

func (*Record) AsInt64

func (r *Record) AsInt64(name string) int64

func (*Record) AsRecordID

func (r *Record) AsRecordID(name string) istructs.RecordID

func (*Record) AsString

func (r *Record) AsString(name string) string

type Records

type Records struct {
	istructs.IRecords
	mock.Mock
}

func (*Records) GetSingleton

func (r *Records) GetSingleton(workspace istructs.WSID, qName appdef.QName) (record istructs.IRecord, err error)

type State

type State struct {
	istructs.IState
	mock.Mock
}

func (*State) KeyBuilder

func (s *State) KeyBuilder(storage, entity appdef.QName) (builder istructs.IStateKeyBuilder, err error)

func (*State) MustExist

func (s *State) MustExist(key istructs.IStateKeyBuilder) (value istructs.IStateValue, err error)

type StateKeyBuilder

type StateKeyBuilder struct {
	istructs.IStateKeyBuilder
	mock.Mock
}

func (*StateKeyBuilder) PutInt32

func (b *StateKeyBuilder) PutInt32(name string, value int32)

func (*StateKeyBuilder) PutInt64

func (b *StateKeyBuilder) PutInt64(name string, value int64)

func (*StateKeyBuilder) PutQName

func (b *StateKeyBuilder) PutQName(name string, value appdef.QName)

func (*StateKeyBuilder) PutString

func (b *StateKeyBuilder) PutString(name, value string)

type StateValue

type StateValue struct {
	istructs.IStateValue
	mock.Mock
}

func (*StateValue) AsInt32

func (v *StateValue) AsInt32(name string) int32

func (*StateValue) AsInt64

func (v *StateValue) AsInt64(name string) int64

func (*StateValue) AsString

func (v *StateValue) AsString(name string) string

type StateValueBuilder

type StateValueBuilder struct {
	istructs.IStateValueBuilder
	mock.Mock
}

Jump to

Keyboard shortcuts

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