Documentation ¶
Index ¶
- func CanProvide(provider plugin_v1.Provider, id string, expectedValue string) func()
- func CanProvideMultiple(provider plugin_v1.Provider, expectedStringValueByID map[string]string) func()
- func Reports(provider plugin_v1.Provider, id string, expectedErrString string) func()
- type CanProvideTestCase
- type ReportsTestCase
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CanProvide ¶
CanProvide calls GetValues on the provider and ensures that the provider response for the given id has the expected value and no error
func CanProvideMultiple ¶
func CanProvideMultiple( provider plugin_v1.Provider, expectedStringValueByID map[string]string, ) func()
CanProvideMultiple calls GetValues on the provider and ensures that the provider's responses for the each id match the expected value and there are no errors. It also duplicates some ids to ensure GetValues can handle multiple instances of the same id
Types ¶
type CanProvideTestCase ¶
CanProvideTestCase captures a test case where a provider is expected to return a value and no error
type ReportsTestCase ¶
ReportsTestCase captures a test case where a provider is expected to return an error
Click to show internal directories.
Click to hide internal directories.