Documentation
¶
Index ¶
- func AssertEqual[T comparable](t *testing.T, got, want T, name string)
- func AssertError(t *testing.T, err error)
- func AssertFalse(t *testing.T, condition bool, msg string)
- func AssertNoError(t *testing.T, err error)
- func AssertTrue(t *testing.T, condition bool, msg string)
- func CreateMockFactsIndex() *types.FactsIndex
- func CreateMockFactsIndexWithFacts(count int) *types.FactsIndex
- func CreateMockFileIndex() *types.FileIndex
- func CreateMockFileIndexWithFiles(count int) *types.FileIndex
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 ¶
AssertError fails the test if err is nil
func AssertFalse ¶
AssertFalse fails the test if condition is true
func AssertNoError ¶
AssertNoError fails the test if err is not nil
func AssertTrue ¶
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 ¶
CreateMockFileIndex creates a test FileIndex with minimal data
func CreateMockFileIndexWithFiles ¶
CreateMockFileIndexWithFiles creates a test FileIndex with specified number of files
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.