testutil

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertRuleFound

func AssertRuleFound(t *testing.T, ruleID string, results []rules.Result, message string, args ...interface{})

func AssertRuleNotFound

func AssertRuleNotFound(t *testing.T, ruleID string, results []rules.Result, message string, args ...interface{})

func CreateModulesFromSource

func CreateModulesFromSource(source string, ext string, t *testing.T) block.Modules

func ScanHCL

func ScanHCL(source string, t *testing.T, additionalOptions ...scanner.Option) rules.Results

func ScanJSON

func ScanJSON(source string, t *testing.T) rules.Results

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