assertion

package
v0.1.0-rc.13 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Equal

func Equal(path string, expected, actual cty.Value) error

Equal checks exact value equality with matcher support.

func MatchJSON

func MatchJSON(expected, actual cty.Value, strict bool, path string) error

MatchJSON performs JSON assertion with partial object semantics by default.

Types

type Mismatch

type Mismatch struct {
	Kind    string
	Path    string
	Want    interface{}
	Got     interface{}
	Message string
}

Mismatch describes one assertion mismatch.

func (*Mismatch) Error

func (m *Mismatch) Error() string

Jump to

Keyboard shortcuts

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