testutil

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 20, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ValidJsonnetBody     = []byte("{}\n")
	InvalidJsonnetBody   = []byte("{,}\n")
	MalformedJsonnetBody = []byte(`function(name, namespace)
  {
    apiVersion: 'accurate.cybozu.com/v1',
    kind: 'SubNamespace',
    metadata: {
      name: name,
      namespace: namespace  // missing the trailing comma
    },
  }
`)
)

Functions

func CreateJsonnet

func CreateJsonnet(t *testing.T, dir, fname string, body []byte) string

func PrepareTestDir

func PrepareTestDir(t *testing.T) (string, func())

Types

This section is empty.

Jump to

Keyboard shortcuts

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