package
0.0.0-20250220232038-fb2fd8af7512
Repository: https://github.com/letsencrypt/boulder.git
Documentation: pkg.go.dev
# Packages
generate.go is a helper utility for integration tests.
This is a test server that implements the subset of RFC6962 APIs needed to run Boulder's CT log submission code.
# Functions
Assert a boolean.
AssertBoxedNil checks that an inner object is nil.
AssertByteEquals uses bytes.Equal to measure one and two for equality.
AssertContains determines whether needle can be found in haystack.
AssertDeepEquals uses the reflect.DeepEqual method to measure one and two.
AssertEquals uses the equality operator (==) to measure one and two.
AssertError checks that err is non-nil.
AssertErrorIs checks that err wraps the given error.
AssertErrorWraps checks that err can be unwrapped into the given target.
AssertMarshaledEquals marshals one and two to JSON, and then uses the equality operator to measure them.
AssertMetricWithLabelsEquals determines whether the value held by a prometheus Collector (e.g.
AssertNil checks that an object is nil.
AssertNotContains determines if needle is not found in haystack.
AssertNotEquals uses the equality operator to measure that one and two are different.
AssertNotError checks that err is nil.
AssertNotNil checks an object to be non-nil.
AssertSliceContains determines if needle can be found in haystack.
AssertUnmarshaledEquals unmarshals two JSON strings (got and expected) to a map[string]interface{} and then uses reflect.DeepEqual to check they are the same.
LoadSigner loads a PEM private key specified by filename or returns an error.
ResetBoulderTestDatabase returns a cleanup function which deletes all rows in all tables of the 'boulder_sa_test' database.
ResetIncidentsTestDatabase returns a cleanup function which deletes all rows in all tables of the 'incidents_sa_test' database.
ThrowAwayCert is a small test helper function that creates a self-signed certificate with one SAN.
# Interfaces
CleanUpDB is an interface with only what is needed to delete all rows in all tables in a database plus close the database connection.