# Packages
Package testclient contains test helpers that reference the SDK-related packages.
Package testenv contains test helpers that reference the relayenv package.
Package testsuites contains shared test suites that should be run against every version of Relay to validate the behavior of the core code.
# Functions
AddQueryParam is a shortcut for concatenating a query string to a URL that may or may not have one.
No description provided by the author
No description provided by the author
AssertJSONPathMatch checks for a value within a nested JSON data structure.
No description provided by the author
No description provided by the author
No description provided by the author
BuildRequest is a simple shortcut for creating a request that may or may not have a body.
BuildRequestWithAuth creates a GET request with an Authorization header.
CallHandlerAndAwaitStatus calls an HTTP handler directly with a request and then blocks until the handler has started a response, returning the response status (and cancelling the request).
No description provided by the author
DoRequest is a shortcut for executing an endpoint handler against a request and getting the response.
No description provided by the author
No description provided by the author
No description provided by the author
ExpectNoStreamChEvent causes a test failure if an event is seen on an SSE stream channel.
ExpectNoStreamEvent causes a test failure if an event is seen on an SSE stream.
ExpectNoTestRequests causes a test failure if an httphelpers request-capturing channel is not empty.
ExpectStreamChEvent is a shortcut for reading from an SSE stream channel with a timeout.
ExpectStreamEvent is a shortcut for reading from an SSE stream with a timeout.
ExpectTestRequest is a shortcut for reading from an httphelpers request-capturing channel with a timeout.
No description provided by the author
No description provided by the author
GetAvailablePort finds an available port (by creating and then immediately closing a listener) and returns the port number.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
MakeSDKStreamEndpointRequest creates a request to one of the streaming SDK endpoints.
No description provided by the author
No description provided by the author
No description provided by the author
NewTestMetricsExporter creates a TestMetricsExporter.
No description provided by the author
ToBase64 is a shortcut for base64 encoding.
No description provided by the author
No description provided by the author
WithListenerForAnyPort creates a listener for an available port, calls the function with the listener and the port number, and then closes the listener.
WithStreamRequest makes a request that should receive an SSE stream, and calls the given code with a channel that will read from that stream.
No description provided by the author
WithTempDir creates a temporary directory, calls the function with its path, then removes it.
# Constants
Evalx indicates that a client-side request wants the "evalx" format rather than the older value-only format.
No description provided by the author
The "malformed" values contain an unsupported authorization scheme.
ReportMode means a client-side request should be done with REPORT rather than GET.
SimpleUserJSON is a basic user.
No description provided by the author
No description provided by the author
The "undefined" values are well-formed, but do not match any environment in our test data.
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NoOpSDKBigSegmentStore is a stub implementation of the SDK's BigSegmentStore (not the type of the same name that Relay uses internally).
No description provided by the author
No description provided by the author
StreamRecorder is an extension of ResponseRecorder to handle streaming content.
No description provided by the author
No description provided by the author
TestMetricsExporter accumulates OpenCensus metrics for tests.
TestMetricsRow is a simplified version of an OpenCensus view row.
No description provided by the author
# Type aliases
No description provided by the author
SDKRequestVariant represents distinctions between endpoints that are not described in full by basictypes.SDKKind or basictypes.StreamKind.
TestMetricsData is a map of OpenCensus view names to row data.