Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Pairs = []struct { Name string Test typeinfo.Instance Json string }{{ "Slice", &literal.FieldList{ Fields: []literal.FieldValue{{ FieldName: "first", Value: &literal.NumValue{ Value: 5, }}, { FieldName: "second", Value: &literal.TextValue{ Value: "five", }}, }, }, `{ "type": "field_list", "id": "test-1", "extraState": { "FIELDS": 2 }, "inputs": { "FIELDS0": { "block": { "type": "field_value", "id": "test-2", "extraState": { "FIELD_NAME": 1, "VALUE": 1 }, "fields": { "FIELD_NAME": "first" }, "inputs": { "VALUE": { "block": { "type": "num_value", "id": "test-3", "extraState": { "VALUE": 1 }, "fields": { "VALUE": 5 } } } } } }, "FIELDS1": { "block": { "type": "field_value", "id": "test-4", "extraState": { "FIELD_NAME": 1, "VALUE": 1 }, "fields": { "FIELD_NAME": "second" }, "inputs": { "VALUE": { "block": { "type": "text_value", "id": "test-5", "extraState": { "VALUE": 1 }, "fields": { "VALUE": "five" } } } } } } } }`}, { "Embed", &testdl.TestEmbed{ TestFlow: testdl.TestFlow{}, }, `{ "type": "test_embed", "id": "test-1", "extraState": { "TEST_FLOW": 1 }, "inputs": { "TEST_FLOW": { "block": { "type": "test_flow", "id": "test-2", "extraState": {} } } } }`}, { "Slot", &literal.FieldValue{ FieldName: "test", Value: &literal.NumValue{ Value: 5, }}, `{ "type": "field_value", "id": "test-1", "extraState": { "FIELD_NAME": 1, "VALUE": 1 }, "fields": { "FIELD_NAME": "test" }, "inputs": { "VALUE": { "block": { "type": "num_value", "id": "test-2", "extraState": { "VALUE": 1 }, "fields": { "VALUE": 5 } } } } }`}, { "Series", &testdl.TestFlow{ Slots: []testdl.TestSlot{ &testdl.TestFlow{}, &testdl.TestFlow{}, }}, `{ "type": "test_flow", "id": "test-1", "extraState": { "SLOTS": 2 }, "inputs": { "SLOTS0": { "block": { "type": "test_flow", "id": "test-2", "extraState": {} } }, "SLOTS1": { "block": { "type": "test_flow", "id": "test-3", "extraState": {} } } } }`}, { "FieldDefinition", &literal.TextValue{Value: "hello world"}, `{ "type": "text_value", "id": "test-1", "extraState": { "VALUE": 1 }, "fields": { "VALUE": "hello world" } }`}, { "List", &literal.TextList{ Values: []string{"a", "b", "c"}, }, `{ "type": "text_list", "id": "test-1", "extraState": { "VALUES": 3 }, "fields": { "VALUES0": "a", "VALUES1": "b", "VALUES2": "c" } }`}, { "Stack", &story.StoryFile{ Statements: []story.StoryStatement{ &story.StoryNote{}, &story.StoryNote{}, &story.StoryNote{}, }}, `{ "type": "story_file", "id": "test-1", "extraState": { "STATEMENTS": 3 }, "inputs": { "STATEMENTS": { "block": { "type": "_story_note_stack", "id": "test-2", "extraState": { "TEXT": 1 }, "fields": { "TEXT": "" }, "next": { "block": { "type": "_story_note_stack", "id": "test-3", "extraState": { "TEXT": 1 }, "fields": { "TEXT": "" }, "next": { "block": { "type": "_story_note_stack", "id": "test-4", "extraState": { "TEXT": 1 }, "fields": { "TEXT": "" } } } } } } } } }`}, { "EmptySeries", &testdl.TestFlow{ Slots: []testdl.TestSlot{}, }, `{ "type": "test_flow", "id": "test-1", "extraState": {} }`, }}
contents of block files and their matching representation in go. ( used by un/block to test read/writing of block files )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.