openapi_cases

package
v1.62.2 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: Apache-2.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const FocusFieldName = "x-test-focus"

Variables

This section is empty.

Functions

func GetAllOpenAPIDirs

func GetAllOpenAPIDirs() ([]string, error)

func ValidateNegativeCase added in v0.0.6

func ValidateNegativeCase(validator *validation.SchemaStorage, moduleName string, schema validation.SchemaType, testValues map[string]interface{}, runFocused bool) error

func ValidatePositiveCase added in v0.0.6

func ValidatePositiveCase(schemaStorage *validation.SchemaStorage, moduleName string, schema validation.SchemaType, testValues map[string]interface{}, runFocused bool) error

func ValuesToString added in v0.0.6

func ValuesToString(v map[string]interface{}) string

Types

type TestCase

type TestCase struct {
	ConfigValues []map[string]interface{}
	Values       []map[string]interface{}
	HelmValues   []map[string]interface{}
}

func (TestCase) HasFocused added in v0.0.6

func (tc TestCase) HasFocused() bool

type TestCases

type TestCases struct {
	Positive TestCase
	Negative TestCase
	// contains filtered or unexported fields
}

func TestCasesFromFile added in v0.0.6

func TestCasesFromFile(filename string) (*TestCases, error)

func (*TestCases) HaveConfigValuesCases

func (t *TestCases) HaveConfigValuesCases() bool

func (*TestCases) HaveHelmValuesCases added in v0.0.6

func (t *TestCases) HaveHelmValuesCases() bool

func (*TestCases) HaveValuesCases

func (t *TestCases) HaveValuesCases() bool

Jump to

Keyboard shortcuts

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