Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFreePort ¶
GetFreePort asks the OS for a free port that can be used for testing. This helps avoid port conflicts when running tests in parallel.
func IsDockerAvailable ¶ added in v0.0.17
IsDockerAvailable returns true if the docker daemon is available, useful for skipping tests when docker isn't running
func IsRunningInCI ¶ added in v0.0.17
IsRunningInCI returns true of process is running in CI environment.
func NewTestConfig ¶ added in v0.0.12
func NewTestConfig(t *testing.T, opts ...TestConfigOption) app.AppConfig
NewTestConfig creates a new test config with sensible defaults This follows the functional options pattern for easy customization
Types ¶
type TestConfigOption ¶ added in v0.0.12
TestConfigOption is a function that modifies a test config
func WithSigner ¶ added in v0.0.12
func WithSigner(signer principal.Signer) TestConfigOption
WithSigner sets the identity signer
func WithUploadServiceConfig ¶ added in v0.0.17
func WithUploadServiceConfig(id did.DID, url *url.URL) TestConfigOption
WithUploadServiceConfig sets the upload service configuration
Click to show internal directories.
Click to hide internal directories.