Documentation
¶
Index ¶
- func ClockFromContext(ctx context.Context) clockwork.FakeClock
- func ConfigureTracer(m *testing.M)
- func FilterInteraction(i *cassette.Interaction) error
- func IsRecording() bool
- func MatchInteraction(r *http.Request, i cassette.Request) bool
- func ReadFixture(path string) (string, error)
- func Recorder(ctx context.Context, t *testing.T) (*recorder.Recorder, error)
- func RestoreClock(t *testing.T) clockwork.FakeClock
- func Retry(interval time.Duration, count int, call func() bool) error
- func SetClock(t *testing.T) clockwork.FakeClock
- func WithClock(ctx context.Context, t *testing.T) context.Context
- func WithTestSpan(ctx context.Context, t *testing.T) (context.Context, func())
- func WrapRoundTripper(rt http.RoundTripper, opts ...ddhttp.RoundTripperOption) http.RoundTripper
- type Assertions
- type TestingT
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClockFromContext ¶
ClockFromContext returns clock or panics.
func FilterInteraction ¶
func FilterInteraction(i *cassette.Interaction) error
FilterInteraction removes secret arguments from the URL.
func IsRecording ¶
func IsRecording() bool
IsRecording returns true if the recording mode is enabled
func MatchInteraction ¶
MatchInteraction checks if the request matches a store request in the given cassette.
func ReadFixture ¶
ReadFixture opens the file at path and returns the contents as a string
func RestoreClock ¶
RestoreClock restore current time from .freeze file.
func WithTestSpan ¶
WithTestSpan starts new span with test information.
func WrapRoundTripper ¶
func WrapRoundTripper(rt http.RoundTripper, opts ...ddhttp.RoundTripperOption) http.RoundTripper
WrapRoundTripper includes tracing information.
Types ¶
Click to show internal directories.
Click to hide internal directories.