Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertFilterTask ¶
func AssertFilterTask(t *testing.T, task coretask.Task[[]*log.Log], sourceRef taskid.TaskReference[[]*log.Log], testCases []FilterTaskTestCase)
AssertFilterTask asserts that the given filter task behaves as expected for the given test cases. It runs the task with the given log fields and checks if the log is included or excluded from the result.
func AssertGrouperTask ¶
func AssertGrouperTask(t *testing.T, task coretask.Task[inspectiontaskbase.LogGroupMap], sourceRef taskid.TaskReference[[]*log.Log], testCases []GrouperTaskTestCase)
AssertGrouperTask asserts that the given grouper task behaves as expected for the given test cases.
Types ¶
type FilterTaskTestCase ¶
FilterTaskTestCase is a test case for testing a filter task. It contains the log fields to be filtered and the expected result.
Click to show internal directories.
Click to hide internal directories.