Documentation
¶
Index ¶
- Constants
- func GenerateExampleFileIfNeeded(dir string) bool
- func GetOperationsByID(a *ast.AST, opts *GetOperationsByIDOptions) map[string][]*ast.Operation
- func GetTestFilesDir(dir string) string
- func IsOperationSupported(op *ast.Operation, cfg *configuration.Config) bool
- func NewInternalEnvVarsExtension(envVars []ast.TestEnvVar) *extensions.Element
- func NewInternalIDExtension(id string) *extensions.Element
- func NewInternalTestGroupsExtension(groups []string) *extensions.Element
- func NewTestGroupExtension(group string) *extensions.Element
- func NewTestSecurityExtension(security *TestSecurity) *extensions.Element
- func NewTestServerExtension(server *TestServer) *extensions.Element
- func NewTestTargetsExtension(targets []string) *extensions.Element
- func PopulateTests(ctx context.Context, opts PopulateTestsOptions) []*ast.TestGroup
- type ArazzoDocumentInfo
- type GetOperationsByIDOptions
- type PopulateTestsOptions
- type TestSecurity
- type TestSecurityCore
- type TestServer
- type TestServerCore
Constants ¶
View Source
const ( ExtTestGroup = "x-speakeasy-test-group" ExtTestServer = "x-speakeasy-test-server" ExtTestTargets = "x-speakeasy-test-targets" ExtTestTargetsExclude = "x-speakeasy-test-targets-exclude" ExtTestSecurity = "x-speakeasy-test-security" ExtInternalID = "x-speakeasy-test-internal-id" ExtInternalEnv = "x-speakeasy-test-internal-env-vars" ExtInternalTestGroups = "x-speakeasy-test-internal-test-groups" )
Variables ¶
This section is empty.
Functions ¶
func GetOperationsByID ¶
func GetTestFilesDir ¶
func IsOperationSupported ¶
func IsOperationSupported(op *ast.Operation, cfg *configuration.Config) bool
func NewInternalEnvVarsExtension ¶
func NewInternalEnvVarsExtension(envVars []ast.TestEnvVar) *extensions.Element
func NewInternalIDExtension ¶
func NewInternalIDExtension(id string) *extensions.Element
func NewInternalTestGroupsExtension ¶
func NewInternalTestGroupsExtension(groups []string) *extensions.Element
func NewTestGroupExtension ¶
func NewTestGroupExtension(group string) *extensions.Element
func NewTestSecurityExtension ¶
func NewTestSecurityExtension(security *TestSecurity) *extensions.Element
func NewTestServerExtension ¶
func NewTestServerExtension(server *TestServer) *extensions.Element
func NewTestTargetsExtension ¶
func NewTestTargetsExtension(targets []string) *extensions.Element
func PopulateTests ¶
func PopulateTests(ctx context.Context, opts PopulateTestsOptions) []*ast.TestGroup
Types ¶
type ArazzoDocumentInfo ¶
type GetOperationsByIDOptions ¶
type GetOperationsByIDOptions struct {
IncludeWebhooks bool
}
type PopulateTestsOptions ¶
type TestSecurity ¶
type TestSecurity struct {
marshaller.Model[TestSecurityCore]
Value yaml.Node `yaml:"value"`
}
type TestSecurityCore ¶
type TestSecurityCore struct {
marshaller.CoreModel `model:"testSecurity"`
Value marshaller.Node[yaml.Node] `key:"value"`
}
type TestServer ¶
type TestServer struct {
marshaller.Model[TestServerCore]
BaseURL string `yaml:"baseUrl"`
}
type TestServerCore ¶
type TestServerCore struct {
marshaller.CoreModel `model:"testServer"`
BaseURL marshaller.Node[string] `key:"baseUrl"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.