Component evidence
Go helper that wraps a MockServer client in a testing.T cleanup, auto‑resetting between tests.
// Source: https://github.com/mock-server/mockserver-monorepo | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
package mockserver
import "testing"
// TestingT is the subset of *testing.T (and *testing.B) used by the test
// helpers below. Accepting an interface keeps the helpers usable from tests,
// benchmarks, and custom harnesses without importing the testing package's
// concrete types everywhere.
type TestingT interface {
Cleanup(func())
Helper()
Errorf(format string, args ...interface{})
}
// MockServerT wraps an existing *Client and registers a t.Cleanup that calls
// Reset when the test (and any subtests) finish, so recorded requests,
// expectations and logs do not l
... (truncated -- full source via MCP)