Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetImplementedTestCases ¶
func GetImplementedTestCases(disco *discovery.ModelDiscoveryItem, nameGenerator names.Generator, ctx *model.Context) ([]model.TestCase, map[string]string)
GetImplementedTestCases takes a discovery Model and determines the implemented endpoints. Currently this function is experimental - meaning it contains fmt.Printlns as an aid to understanding and conceptualisation
Types ¶
type Generator ¶
type Generator interface {
GenerateSpecificationTestCases(GeneratorConfig, discovery.ModelDiscovery, *model.Context) TestCasesRun
}
Generator - generates test cases from discovery model
func NewGenerator ¶
func NewGenerator() Generator
NewGenerator - returns implementation of Generator interface
type GeneratorConfig ¶
type SpecificationTestCases ¶
type SpecificationTestCases struct { Specification discovery.ModelAPISpecification `json:"apiSpecification"` TestCases []model.TestCase `json:"testCases"` }
SpecificationTestCases - test cases generated for a specification
func GetCustomTestCases ¶
func GetCustomTestCases(discoReader *discovery.CustomTest, ctx *model.Context) SpecificationTestCases
GetCustomTestCases retrieves custom tests from the discovery file
type TestCasesRun ¶
type TestCasesRun struct { TestCases []SpecificationTestCases `json:"specCases"` SpecConsentRequirements []model.SpecConsentRequirements `json:"specTokens"` }
TestCasesRun represents all specs and their test and a list of tokens required to run those tests
Click to show internal directories.
Click to hide internal directories.