testonly

package
v0.0.0-...-cc9b1f3 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

func Marshal(t *testing.T, j interface{}) string

Marshal marshals an interface with checking error

func NewBase

NewBase returns a new BaseDatatype

func OperationsToString

func OperationsToString(ops []*model.Operation) string

OperationsToString returns a string of an array of operations

Types

type TestWire

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

TestWire ...

func NewTestWire

func NewTestWire(notifiable bool) *TestWire

NewTestWire ...

func (*TestWire) DeliverTransaction

func (its *TestWire) DeliverTransaction(wired iface.WiredDatatype)

DeliverTransaction ...

func (*TestWire) OnChangeDatatypeState

func (its *TestWire) OnChangeDatatypeState(dt iface.Datatype, state model.StateOfDatatype) errors.OrdaError

OnChangeDatatypeState ...

func (*TestWire) SetDatatypes

func (its *TestWire) SetDatatypes(datatypeList ...*datatypes.WiredDatatype)

SetDatatypes ...

func (*TestWire) Sync

func (its *TestWire) Sync()

Sync can sync

Jump to

Keyboard shortcuts

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