testutil

package
v1.29.5 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloneInJSON

func CloneInJSON[T any](v T) T

CloneInJSON clones an object mapping in JSON. Normally, all ARM resources are JSON mapping.

func ExpectEqualInJSON

func ExpectEqualInJSON(t *testing.T, expected, actual any, msgAndArgs ...any)

func ExpectExactSecurityRules

func ExpectExactSecurityRules(t *testing.T, sg *network.SecurityGroup, expected []network.SecurityRule, msgAndArgs ...any)

ExpectExactSecurityRules asserts the security group whether it has the exact same rules.

func ExpectHasSecurityRules

func ExpectHasSecurityRules(t *testing.T, sg *network.SecurityGroup, expected []network.SecurityRule, msgAndArgs ...any)

ExpectHasSecurityRules asserts the security group whether it has the given rules.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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