Documentation
¶
Overview ¶
Package providertest is the conformance suite every provider.Provider must pass. A provider's own tests call Run with a constructor.
func TestConformance(t *testing.T) {
providertest.Run(t, func() provider.Provider { return newTestProvider() })
}
The suite checks the contract on the Provider interface: version handling, binding of the additional data, typed errors, context cancellation, that inputs are not retained, that errors carry no key material, and concurrent use. It uses only the interface, so it applies to a local keyring and to a managed service alike.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.