stdimagortestfx

package
v0.0.265 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 23, 2026 License: MIT Imports: 14 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package stdimagortestfx provides the stdimagorfx client for tests, on an Imagor server of the fx app's own, so they need no Docker Compose or other prior setup. Only test code should import this package: it pulls in testcontainers-go and the Docker client.

Index

Constants

View Source
const Secret = "stdimagortest-secret" //nolint:gosec // signs test requests only

Secret signs the tests' requests to Imagor; not a secret.

Variables

This section is empty.

Functions

func Provide

func Provide(tb testing.TB, image, s3Image, bucket, prefix string) fx.Option

Provide works like stdimagorfx.Provide, but connects to an Imagor server that is started from image for the fx app, and stopped when tb ends, instead of the one in STDIMAGOR_URL. The server writes its results to the app's bucket with alias bucket, under prefix, on the S3 server that stds3testfx started from s3Image, which it reaches on stdtestcontainer.Network. It loads sources only from that server, as stds3fx's client pre-signs them for services.

Each app gets its own server, since Imagor writes to one bucket, and each app has buckets of its own. It needs stds3testfx's client.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL