utils

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ProjectRoot     string
	ExampleRoot     string
	OaiTestDataRoot string
	CrdTestDataRoot string
	BinaryPath      string
	OaiTestDirs     []string
	KubeTestDirs    []string
)

Functions

func BinaryConvertModel

func BinaryConvertModel(integrationGenOpts IntegrationGenOpts) error

func CompareDir

func CompareDir(a string, b string) error

func DoTestConvert

func DoTestConvert(testDir string, tCase TestCase, convertFunc func(opts IntegrationGenOpts) error, crd bool) error

func DoTestDirs

func DoTestDirs(t *testing.T, dirs []string, convertFunc func(opts IntegrationGenOpts) error, crd bool)

func InitTestDirs

func InitTestDirs(projectRoot string, buildBinary bool) error

Types

type IntegrationGenOpts

type IntegrationGenOpts struct {
	BinaryPath   string
	SpecPath     string
	TargetDir    string
	IsCrd        bool
	ModelPackage string
}

type TestCase

type TestCase struct {
	Name     string
	SpecPath string
	GenPath  string
}

func FindCases

func FindCases(testDir string) (cases []TestCase, err error)

Jump to

Keyboard shortcuts

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