top

Package testutils is the Test utilities.

The functionality in this package is exposed both for internal testing as well as service testability.

InMemoryLogger

If you'd like to verify that log messages are logged properly, use the WithInMemoryLogger() helper which will provider you with a zap.Logger you can pass into a service and capture recorded messages.

EnvOverride

If you'd like to override environment variables, use the EnvOverride() helper and defer the reset to ensure the old value us returned at the end of the test.

Imported only in test by 2 package(s)

  1. go.uber.org/fx/tracing
  2. go.uber.org/fx/ulog

Imports 3 package(s)

  1. github.com/stretchr/testify/require
  2. github.com/uber-go/zap
  3. go.uber.org/fx/config