diag_test

package
v0.4.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareDiags added in v0.4.1

func CompareDiags(t *testing.T, diags diagnostics.Diag, asserts [][]Assert)

func IsError

func IsError(diag *hcl.Diagnostic) bool

func IsWarning

func IsWarning(diag *hcl.Diagnostic) bool

Types

type Assert

type Assert func(diag *hcl.Diagnostic) bool

func DetailContains

func DetailContains(substrs ...string) Assert

func SummaryContains

func SummaryContains(substrs ...string) Assert

Jump to

Keyboard shortcuts

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