Documentation ¶
Index ¶
- Constants
- func ApproveJson(received map[string]interface{}, name string, ignored map[string]string) error
- func Compare(path string, ignored map[string]string) (map[string]interface{}, []byte, gojsondiff.Diff, error)
- func LoadData(file string, processorName string) (map[string]interface{}, error)
- func LoadDataAsBytes(fileName string) ([]byte, error)
- func LoadInvalidData(processorName string) (map[string]interface{}, error)
- func LoadValidData(processorName string) (map[string]interface{}, error)
- func LoadValidDataAsBytes(processorName string) ([]byte, error)
- func StrConcat(pre string, post string, delimiter string) string
- func TestDataAgainstProcessor(t *testing.T, p processor.Processor, testData []SchemaTestData)
- func TestDocumentedFieldsInEvent(t *testing.T, fieldPaths []string, fn processor.NewProcessor, ...)
- func TestEventAttrsDocumentedInFields(t *testing.T, fieldPaths []string, fn processor.NewProcessor)
- func TestJsonSchemaKeywordLimitation(t *testing.T, fieldPaths []string, schema string, exceptions *set.Set)
- func TestPayloadAttributesInSchema(t *testing.T, name string, undocumentedAttrs *set.Set, schema string)
- func TestProcessRequests(t *testing.T, p processor.Processor, requestInfo []RequestInfo, ...)
- type Mapping
- type RequestInfo
- type Schema
- type SchemaTestData
Constants ¶
View Source
const ApprovedSuffix = ".approved.json"
View Source
const ReceivedSuffix = ".received.json"
Variables ¶
This section is empty.
Functions ¶
func ApproveJson ¶
func LoadDataAsBytes ¶
func LoadInvalidData ¶
func LoadValidData ¶
func LoadValidDataAsBytes ¶
func TestDataAgainstProcessor ¶
func TestDataAgainstProcessor(t *testing.T, p processor.Processor, testData []SchemaTestData)
func TestEventAttrsDocumentedInFields ¶
func TestEventAttrsDocumentedInFields(t *testing.T, fieldPaths []string, fn processor.NewProcessor)
func TestProcessRequests ¶
Types ¶
type RequestInfo ¶
type SchemaTestData ¶
Click to show internal directories.
Click to hide internal directories.