Documentation
¶
Overview ¶
Package testsupport holds helpers that exist only for tests.
Separate from internal/util because of what it contains: nearly every production package imports util, which put a JWT minter in every shipped binary. internal/architecture keeps this package out of production code.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunWithIsolatedHome ¶
RunWithIsolatedHome runs a package's tests against a throwaway BUILDMAX_HOME and removes it afterwards.
config.DataDir refuses to fall back to the real ~/.buildmax under `go test`, so a package whose code reaches it needs a home of its own. Setting it for the whole test binary is what `./make test` already does globally; doing it here too means a narrow `go test ./internal/x` behaves the same, and a test added later does not have to know the requirement exists.
Types ¶
type TestJWTClaims ¶
type TestJWTClaims struct {
jwt.RegisteredClaims
Sub string `json:"sub"`
}
TestJWTClaims is used by SignJWT for test tokens that match the server's sub claim.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package mockllm serves scripted model replies over the three wire protocols BuildMax speaks, so an end-to-end suite can drive a real run without a provider, a key, or a paid call.
|
Package mockllm serves scripted model replies over the three wire protocols BuildMax speaks, so an end-to-end suite can drive a real run without a provider, a key, or a paid call. |