package
2.0.0+incompatible
Repository: https://github.com/go-kivik/kiviktest.git
Documentation: pkg.go.dev

# Functions

Body turns a string into a read closer, useful as a request or attachment body.
DSN returns a testing DSN from the environment.
GetClient returns a connection to a CouchDB client, for testing.
GetNoAuthClient returns an unauthenticated connection to a CouchDB client, for testing.
NoAuthDSN returns a testing DSN with credentials stripped.
Register registers a test to be run for the given test suite.
Retry will try an operation up to 3 times, in case of one of the following failures.
RunSubtests executes the requested suites of tests against the client.
TestDBName generates a randomized string suitable for a database name for testing.

# Constants

TestDBPrefix is used to prefix temporary database names during tests.

# Variables

AllDocsIndex is the default index for _all_docs.

# Structs

Context is a collection of client connections with different security access.

# Type aliases

SuiteConfig represents the configuration for a test suite.