testhelpers

package
v7.0.1-0...-b8e8e6a Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dedent

func Dedent(x string) string

Dedent converts Go-specific indentation (tabs) into proper YAML indentation.

func IsYAMLEqual

func IsYAMLEqual(assert *assert.Assertions, expected, actual interface{}) bool

IsYAMLEqual asserts that all items in the expected properties are in the actual properties, and vice versa.

func IsYAMLEqualString

func IsYAMLEqualString(assert *assert.Assertions, expected string, actual interface{}) bool

IsYAMLEqualString asserts that all items in the expected properties are in the actual properties, and vice versa. The expected properties are specified as YAML string. Go-specific indentation in the string (tabs) is replaced with proper YAML indentation.

func IsYAMLSubset

func IsYAMLSubset(assert *assert.Assertions, expected, actual interface{}) bool

IsYAMLSubset asserts that all items in the expected properties are in the actual properties. Note, the actual properties may contain more than expected.

func IsYAMLSubsetString

func IsYAMLSubsetString(assert *assert.Assertions, expected string, actual interface{}) bool

IsYAMLSubsetString asserts that all items in the expected properties are in the actual properties. Note, the actual properties may contain more than expected. The expected properties are specified as YAML string. Go-specific indentation in the string (tabs) is replaced with proper YAML indentation.

Types

This section is empty.

Jump to

Keyboard shortcuts

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