Documentation
¶
Index ¶
- Constants
- func RequireEnvoyVersionsTestServer(t *testing.T, v version.PatchVersion) *httptest.Server
- func RequireFakeEnvoyTarGz(t *testing.T, v version.PatchVersion) ([]byte, version.SHA256Sum)
- func RequireRun(t *testing.T, timeout time.Duration, r Runner, stderr io.Reader, ...) error
- func TarballURL(baseURL, goos, goarch string, v version.PatchVersion) version.TarballURL
- type Runner
Constants ¶
View Source
const ( // FakeReleaseDate helps us make sure main code doesn't accidentally write the system time instead of the expected. FakeReleaseDate = version.ReleaseDate("2020-12-31") )
Variables ¶
This section is empty.
Functions ¶
func RequireEnvoyVersionsTestServer ¶
RequireEnvoyVersionsTestServer serves "/envoy-versions.json", containing download links a fake Envoy archive.
func RequireFakeEnvoyTarGz ¶
RequireFakeEnvoyTarGz makes a fake envoy.tar.gz
func RequireRun ¶
func RequireRun(t *testing.T, timeout time.Duration, r Runner, stderr io.Reader, args ...string) error
RequireRun executes Run on the given Runtime and calls shutdown after it started.
func TarballURL ¶
func TarballURL(baseURL, goos, goarch string, v version.PatchVersion) version.TarballURL
TarballURL gives the expected download URL for the given runtime.GOOS and Envoy version.
Types ¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package fakebinary as using morerequire introduces build cycles
|
Package fakebinary as using morerequire introduces build cycles |
|
Package morerequire includes more require functions than "github.com/stretchr/testify/require" Do not add dependencies on any main code as it will cause cycles.
|
Package morerequire includes more require functions than "github.com/stretchr/testify/require" Do not add dependencies on any main code as it will cause cycles. |
Click to show internal directories.
Click to hide internal directories.