helpers

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertRule

func AssertRule(t *testing.T, findings []types.Finding, ruleID, expectedSev string, expectPresent bool)

AssertRule is a helper to check for a rule's presence and severity.

func Contains

func Contains(slice []string, item string) bool

Contains checks if a string is present in a slice of strings.

func HasPrefix

func HasPrefix(str, prefix string) bool

HasPrefix checks if a string starts with a given prefix.

Types

This section is empty.

Jump to

Keyboard shortcuts

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