Versions in this module Expand all Collapse all v1 v1.3.2 Dec 23, 2024 Changes in this version + func DockerCreate(tb testing.TB, args ...string) (containerId string) + func DockerExec(tb testing.TB, id string, args ...string) + func DockerRun(tb testing.TB, args ...string) (containerId string) + func DockerStart(tb testing.TB, id string) + func ExecWGCurl(readyWG *sync.WaitGroup, retries uint, args ...string) error + func GetDefaultObserver(tb testing.TB, ctx context.Context, lib string, opts ...TestOption) (*observer.Observer, error) + func GetDefaultObserverWithBase(tb testing.TB, ctx context.Context, b *sensors.Sensor, file, lib string, ...) (*observer.Observer, error) + func GetDefaultObserverWithConfig(tb testing.TB, ctx context.Context, config, lib string, opts ...TestOption) (*observer.Observer, error) + func GetDefaultObserverWithFile(tb testing.TB, ctx context.Context, file, lib string, opts ...TestOption) (*observer.Observer, error) + func GetDefaultObserverWithWatchers(tb testing.TB, ctx context.Context, base *sensors.Sensor, opts ...TestOption) (*observer.Observer, error) + func GetDefaultSensorsWithBase(tb testing.TB, b *sensors.Sensor, file, lib string, opts ...TestOption) ([]*sensors.Sensor, error) + func GetDefaultSensorsWithFile(tb testing.TB, file, lib string, opts ...TestOption) ([]*sensors.Sensor, error) + func GetMyPid() uint32 + func LoopEvents(ctx context.Context, tb testing.TB, doneWG, readyWG *sync.WaitGroup, ...) + func WaitForProcess(process string) error + func WriteConfigFile(fileName, config string) error + type TestOption func(*TestOptions) + func WithAllowList(allowList *tetragon.Filter) TestOption + func WithConfig(config string) TestOption + func WithContainerId(id string) TestOption + func WithDenyList(denyList *tetragon.Filter) TestOption + func WithLib(lib string) TestOption + func WithMyPid() TestOption + func WithProcCacheGCInterval(GCInterval time.Duration) TestOption + type TestOptions struct