package
0.0.0-20190507022301-b1bd2f5c3845
Repository: https://github.com/gincoinc/go.git
Documentation: pkg.go.dev

# Packages

Package db provides helpers to connect to test databases.
No description provided by the author
Common infrastructure for testing Trades.

# Functions

Context provides a context suitable for testing in tests that do not create a full App instance (in which case your tests should be using the app's context).
Database returns a connection to the horizon test database DEPRECATED: use `Horizon()` from test/db package.
DatabaseURL returns the database connection the url any test use when connecting to the history/horizon database DEPRECATED: use `HorizonURL()` from test/db package.
LoadScenario populates the test databases with pre-created scenarios.
LoadScenarioWithoutHorizon populates the test Stellar core database a with pre-created scenario.
No description provided by the author
NewStaticMockServer creates a new mock server that always responds with `response`.
OverrideLogger sets the default logger used by horizon to `l`.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
RestoreLogger restores the default horizon logger after it is overridden using a call to `OverrideLogger`.
No description provided by the author
Start initializes a new test helper object and conceptually "starts" a new test.
StellarCoreDatabase returns a connection to the stellar core test database DEPRECATED: use `StellarCore()` from test/db package.
StellarCoreDatabaseURL returns the database connection the url any test use when connecting to the stellar-core database DEPRECATED: use `StellarCoreURL()` from test/db package.

# Structs

StaticMockServer is a test helper that records it's last request.
T provides a common set of functionality for each test in horizon.

# Interfaces

No description provided by the author