testutil

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertEqual

func AssertEqual[T comparable](t *testing.T, got, want T, name string)

AssertEqual fails the test if got != want

func AssertError

func AssertError(t *testing.T, err error)

AssertError fails the test if err is nil

func AssertFalse

func AssertFalse(t *testing.T, condition bool, msg string)

AssertFalse fails the test if condition is true

func AssertNoError

func AssertNoError(t *testing.T, err error)

AssertNoError fails the test if err is not nil

func AssertTrue

func AssertTrue(t *testing.T, condition bool, msg string)

AssertTrue fails the test if condition is false

func CreateMockFactsIndex

func CreateMockFactsIndex() *types.FactsIndex

CreateMockFactsIndex creates a test FactsIndex with minimal data

func CreateMockFactsIndexWithFacts

func CreateMockFactsIndexWithFacts(count int) *types.FactsIndex

CreateMockFactsIndexWithFacts creates a test FactsIndex with specified number of facts

func CreateMockFileIndex

func CreateMockFileIndex() *types.FileIndex

CreateMockFileIndex creates a test FileIndex with minimal data

func CreateMockFileIndexWithFiles

func CreateMockFileIndexWithFiles(count int) *types.FileIndex

CreateMockFileIndexWithFiles creates a test FileIndex with specified number of files

Types

This section is empty.

Jump to

Keyboard shortcuts

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