package
19.1.0-beta.20190304+incompatible
Repository: https://github.com/darinpp/cockroach.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Package lint tests Go code for policy and style violations, as well as detecting suspicious constructs that are typically bugs.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Functions
Caller returns filename and line number info for the specified stack depths.
FillCerts sets the certs on a base.Config.
IsError returns true if the error string matches the supplied regex.
IsPError returns true if pErr's message matches the supplied regex.
IsSQLRetryableError returns true if err is retryable.
MakeAmbientCtx creates an AmbientContext with a Tracer in it.
MakeCaller returns a function which will invoke Caller with the specified arguments.
MakeKey makes a new key which is the concatenation of the given inputs, in order.
MatchInOrder matches interprets the given slice of strings as a slice of regular expressions and checks that they match, in order and without overlap, against the given string.
NewNodeTestBaseContext creates a base context for testing.
NewPartitionableConn wraps serverConn in a PartitionableConn.
NewTestBaseContext creates a secure base context for user.
NightlyStress returns true iff the process is running as part of CockroachDB's nightly stress tests.
ReadAllFiles reads all of the files matching pattern, thus ensuring they are in the OS buffer cache.
RunTrueAndFalse calls the provided function in a subtest, first with the boolean argument set to false and next with the boolean argument set to true.
SortStructs sorts the given slice of structs using the given fields as the ordered sort keys.
SucceedsSoon fails the test (with t.Fatal) unless the supplied function runs without error within a preset maximum duration.
TempDir creates a directory and a function to clean it up at the end of the test.
# Constants
DefaultSucceedsSoonDuration is the maximum amount of time unittests will wait for a condition to become true.
# Structs
PartitionableConn is an implementation of net.Conn that allows the client->server and/or the server->client directions to be temporarily partitioned.