Documentation ¶
Overview ¶
package test provides structures and defintions for testing
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AtomAltTest ¶
func (*AtomAltTest) NextAtom ¶
func (a *AtomAltTest) NextAtom() NextAtom
type AtomTest ¶
type AtomTest struct { AtomInput *MutableBlock NextStatement NextAtom }
type AtomWithInterface ¶
type AtomWithInterface struct {
Input PinInterface
}
an atom that contains an input with an interface
func (*AtomWithInterface) NextAtom ¶
func (*AtomWithInterface) NextAtom() NextAtom
type BlockMutation ¶
type BlockMutation struct {
NextStatement NextAtom
}
type EnumStatement ¶
type EnumStatement struct {
Enum
}
type FieldBlock ¶
type FieldBlock struct {
Number float32
}
func (*FieldBlock) Output ¶
func (b *FieldBlock) Output() interface{}
Output - implement a generic output
type InputBlock ¶
type InputBlock struct { Value *RowBlock `input:"value"` Statement *InputBlock `input:"statement"` Mutation *BlockMutation `input:"mutation"` }
type InterfacingTerm ¶
type InterfacingTerm struct{}
can plug into a PinInterface Input
func (*InterfacingTerm) Output ¶
func (t *InterfacingTerm) Output() PinInterface
type MutableBlock ¶
type MutableBlock struct { Input *MutableBlock Mutant *BlockMutation `input:"mutation"` Field string }
func (*MutableBlock) Output ¶
func (n *MutableBlock) Output() *MutableBlock
Output - implement a generic output
type PinInterface ¶
type PinInterface interface{ Output() PinInterface }
type RowBlock ¶
type RowBlock struct {
Input *RowBlock
}
see also: blockly/tests/jsunit/block_test.js setUpRowBlocks.
type StackBlock ¶
type StackBlock struct {
NextStatement interface{}
}
see also: blockly/tests/jsunit/block_test.js setupStackBlocks.
Click to show internal directories.
Click to hide internal directories.