test

package
v2.25.2 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AWS

func AWS(schemaDirectoryPath string) (plugin.Provider, error)

func Azure added in v2.12.0

func Azure(schemaDirectoryPath string) (plugin.Provider, error)

func CheckAllFilesGenerated added in v2.18.1

func CheckAllFilesGenerated(t *testing.T, actual, expected map[string][]byte)

CheckAllFilesGenerated ensures that the set of expected and actual files generated are exactly equivalent.

func GeneratePackageFilesFromSchema added in v2.11.1

func GeneratePackageFilesFromSchema(schemaPath string, genPackageFunc GenPkgSignature) (map[string][]byte, error)

GeneratePackageFilesFromSchema loads a schema and generates files using the provided GeneratePackage function.

func GetSchema

func GetSchema(schemaDirectoryPath, providerName string) ([]byte, error)

func Kubernetes added in v2.8.1

func Kubernetes(schemaDirectoryPath string) (plugin.Provider, error)

func LoadFiles added in v2.11.1

func LoadFiles(dir, lang string, files []string) (map[string][]byte, error)

LoadFiles loads the provided list of files from a directory.

func NewHost

func NewHost(schemaDirectoryPath string) plugin.Host

func Random added in v2.6.0

func Random(schemaDirectoryPath string) (plugin.Provider, error)

func ValidateFileEquality added in v2.11.1

func ValidateFileEquality(t *testing.T, actual, expected map[string][]byte)

ValidateFileEquality compares maps of files for equality.

Types

type GenPkgSignature added in v2.11.1

type GenPkgSignature func(string, *schema.Package, map[string][]byte) (map[string][]byte, error)

GenPkgSignature corresponds to the shape of the codegen GeneratePackage functions.

Jump to

Keyboard shortcuts

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