{"modulePath":"github.com/QoderAI/qoder-cloud-agents-sdk-go","version":"v0.15.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package testsupport\n\nPackage testutil contains shared assertions for the two SDK contract suites.\n\n## Functions\n\n```go\nfunc CheckFields(t *testing.T, v reflect.Value, path string)\n```\nCheckFields validates concrete decoded values as well as presence metadata, including objects inside dynamic maps and unions.\n\n```go\nfunc FailureContracts(t *testing.T, endpoints []Endpoint, client func(Transport) any)\n```\nFailureContracts exercises every documented endpoint through its public service method. Expected HTTP failures are independent of parameter/response fixture generation.\n\n```go\nfunc InvokeJSON(t *testing.T, client any, ep Endpoint, body json.RawMessage) (any, error)\n```\nInvokeJSON calls one service with a documented request example. Path arguments are deliberately awkward to exercise escaping independently of payload values.\n\n```go\nfunc ResourceAlreadyGone(err error) bool\n```\n\n```go\nfunc SafeError(err error) string\n```\nSafeError omits response bodies and URLs: either may contain a token or a presigned storage grant. Request IDs are enough to correlate server diagnostics.\n\n## Types\n\n```go\ntype CleanupFailure struct{ Err error }\n```\nCleanupFailure identifies an incomplete cleanup step, not an already deleted target resource (for example, a batch output which has not been generated).\n\n```go\nfunc (e *CleanupFailure) Error() string\n```\n\n```go\nfunc (e *CleanupFailure) Unwrap() error\n```\n\n```go\ntype Endpoint struct{ Service, Method string }\n```\n\n```go\ntype Transport func(*http.Request) (*http.Response, error)\n```\n\n```go\nfunc (f Transport) RoundTrip(r *http.Request) (*http.Response, error)\n```\n\n```go\ntype TurnResult struct {\n\tText     string\n\tLastID   string\n\tToolUsed bool\n\tComplete bool\n}\n```\nTurnResult only accepts assistant output followed by a terminal idle event. User messages and tool output cannot satisfy the result assertion.\n\n```go\nfunc (r *TurnResult) Observe(raw string) error\n```\n\n```go\nfunc (r TurnResult) Verify(expected []string, requireTool bool) error\n```\n\n","path":"github.com/QoderAI/qoder-cloud-agents-sdk-go/internal/testsupport","name":"testsupport","synopsis":"Package testutil contains shared assertions for the two SDK contract suites.","isRedistributable":true}
