testdl

package
v0.24.8 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

testdl

Package testdl contains various autogenerated types the intention is to decouple some of the "test autogenerated utils" from the tapestry language itself.

testdl

Index

Constants

This section is empty.

Variables

View Source
var Z_Types = typeinfo.TypeSet{
	Name: "testdl",
	Comment: []string{
		"testdl",
	},

	Slot:       z_slot_list,
	Flow:       z_flow_list,
	Str:        z_str_list,
	Num:        z_num_list,
	Signatures: z_signatures,
}

package listing of type data

View Source
var Zt_TestBool = typeinfo.Str{
	Name: "test_bool",
	Options: []string{
		"true",
		"false",
	},
}

test_bool, a type of str enum.

View Source
var Zt_TestEmbed typeinfo.Flow

test_embed, a type of flow.

View Source
var Zt_TestFlow typeinfo.Flow

test_flow, a type of flow.

View Source
var Zt_TestNum = typeinfo.Num{
	Name: "test_num",
}

TestNum, a type of num.

View Source
var Zt_TestSlot = typeinfo.Slot{
	Name: "test_slot",
}

test_slot, a type of slot.

View Source
var Zt_TestStr = typeinfo.Str{
	Name: "test_str",
	Options: []string{
		"one",
		"other",
		"option",
	},
}

test_str, a type of str enum.

View Source
var Zt_TestTxt = typeinfo.Str{
	Name: "test_txt",
}

TestTxt, a type of str.

Functions

func Register added in v0.24.7

func Register(reg func(any))

gob like registration

Types

type TestBool

type TestBool int

TestBool, a type of str enum.

const (
	C_TestBool_True TestBool = iota
	C_TestBool_False
)

The enumerated values of TestBool.

func MakeTestBool

func MakeTestBool(str string) (ret TestBool, okay bool)

func (TestBool) String

func (op TestBool) String() (ret string)

type TestEmbed

type TestEmbed struct {
	TestFlow TestFlow
	Markup   map[string]any `json:",omitempty"`
}

func (*TestEmbed) GetMarkup

func (op *TestEmbed) GetMarkup(ensure bool) map[string]any

Implements typeinfo.Markup

func (*TestEmbed) TypeInfo

func (*TestEmbed) TypeInfo() typeinfo.T

Implements typeinfo.Instance

type TestEmbed_Slice

type TestEmbed_Slice []TestEmbed

Holds a slice of type TestEmbed.

func (*TestEmbed_Slice) Repeats

func (op *TestEmbed_Slice) Repeats() bool

Implements typeinfo.Repeats for a slice of TestEmbed.

func (*TestEmbed_Slice) TypeInfo

func (*TestEmbed_Slice) TypeInfo() typeinfo.T

Implements typeinfo.Instance for a slice of TestEmbed.

type TestFlow

type TestFlow struct {
	Slot   TestSlot
	Txt    string
	Num    float64
	Bool   TestBool
	Slots  []TestSlot
	Markup map[string]any `json:",omitempty"`
}

func (*TestFlow) GetMarkup

func (op *TestFlow) GetMarkup(ensure bool) map[string]any

Implements typeinfo.Markup

func (*TestFlow) TypeInfo

func (*TestFlow) TypeInfo() typeinfo.T

Implements typeinfo.Instance

type TestFlow_Slice

type TestFlow_Slice []TestFlow

Holds a slice of type TestFlow.

func (*TestFlow_Slice) Repeats

func (op *TestFlow_Slice) Repeats() bool

Implements typeinfo.Repeats for a slice of TestFlow.

func (*TestFlow_Slice) TypeInfo

func (*TestFlow_Slice) TypeInfo() typeinfo.T

Implements typeinfo.Instance for a slice of TestFlow.

type TestSlot

type TestSlot interface{}

type TestSlot_Slot

type TestSlot_Slot struct{ Value TestSlot }

Holds a single slot.

func (*TestSlot_Slot) TypeInfo

func (*TestSlot_Slot) TypeInfo() typeinfo.T

Implements typeinfo.Instance for a single slot.

type TestSlot_Slots

type TestSlot_Slots []TestSlot

Holds a slice of slots.

func (*TestSlot_Slots) Repeats

func (op *TestSlot_Slots) Repeats() bool

Implements typeinfo.Repeats for a slice of slots.

func (*TestSlot_Slots) TypeInfo

func (*TestSlot_Slots) TypeInfo() typeinfo.T

Implements typeinfo.Instance for a slice of slots.

type TestStr

type TestStr int

TestStr, a type of str enum.

const (
	C_TestStr_One TestStr = iota
	C_TestStr_Other
	C_TestStr_Option
)

The enumerated values of TestStr.

func MakeTestStr

func MakeTestStr(str string) (ret TestStr, okay bool)

func (TestStr) String

func (op TestStr) String() (ret string)

Jump to

Keyboard shortcuts

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