tests

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2025 License: MIT Imports: 11 Imported by: 0 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RemoteServer

type RemoteServer struct {
	// contains filtered or unexported fields
}

RemoteServer manages a testcontainer that serves the JSON Schema Test Suite remote files

func (*RemoteServer) GetActualURL

func (rs *RemoteServer) GetActualURL(path string) string

GetActualURL returns the actual URL where the file is served

func (*RemoteServer) GetBaseURL

func (rs *RemoteServer) GetBaseURL() string

GetBaseURL returns the base URL where the remote files are served

func (*RemoteServer) GetExpectedURL

func (rs *RemoteServer) GetExpectedURL(path string) string

GetExpectedURL returns the URL that the test suite expects for a given path Since we're binding to localhost:1234, this is the same as GetActualURL

func (*RemoteServer) GetHTTPClient

func (rs *RemoteServer) GetHTTPClient() *http.Client

GetHTTPClient returns an HTTP client that redirects localhost:1234 requests to the actual container

func (*RemoteServer) Stop

func (rs *RemoteServer) Stop()

Stop stops and removes the container

Jump to

Keyboard shortcuts

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