package
Version:
v0.19.0
Opens a new window with list of versions in this module.
Published: Jul 25, 2024
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Module provides an Fx module that can be used to test Sprout applications.
This will enable logging, tracing and metrics.
Example:
app := fxtest.New(
t,
test.Module(testingT), // use testing.T or testing.B
otherModules,
)
app.RequireStart()
type TB interface {
Logf(string, ...interface{})
Errorf(string, ...interface{})
Fail()
Failed() bool
Name() string
FailNow()
}
TB is the interface that testing.T and testing.B implement.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.