Documentation ¶
Overview ¶
Package testhelpers provide helpers for writing probe provider tests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertEquivalent ¶
AssertEquivalent runs Equivalent and fails the provided test if it returns false
func ConfigureProbe ¶
func ConfigureProbe(t *testing.T, cfgCtx *hcl.EvalContext, cfgWriter func(*hclwrite.Body), provide model.ProbeProvider) model.Prober
ConfigureProbe will configure and return an instance of the provided ProbeProvider after applying the provided configuration writer function.
Types ¶
type TestConfig ¶
type TestConfig struct {
Config hcl.Body `hcl:"probe_configuration,remain"`
}
TestConfig is used to decode HCL for test purposes.
Click to show internal directories.
Click to hide internal directories.