package
0.57.0
Repository: https://github.com/grafana/k6.git
Documentation: pkg.go.dev

# Packages

Package grpcservice contains the implementation of the test GRPC service.
Package httpmultibin is intended only for use in tests, do not import in production code!.
Package minirunner provides a mock implementation of the lib.Runner We use it in tests.
Package mockoutput implements a mock output for testing purposes.
Package mockresolver provides a mock implementation of netext.Resolver.

# Functions

FilterEntries is a helper function that checks the provided list of log entries for a messages matching the provided level and contents and returns an array with only them.
LogContains is a helper function that checks the provided list of log entries for a message matching the provided level and contents.
MakeMemMapFs creates a new in-memory filesystem with the given files.
NewLogger returns a new logger instance.
NewLoggerWithHook calls NewLogger() and attaches a hook with the given levels.
NewLogHook creates a new SimpleLogrusHook with the given levels and returns it.
NewTestOutput returns a simple io.Writer implementation that uses the test's logger as an output.
Untar a simple test helper that untars a `fileName` file to a `destination` path.

# Structs

SimpleLogrusHook implements the logrus.Hook interface and could be used to check if log messages were outputted.