Documentation ¶
Index ¶
- func CtyTestDiff(got []*resource.Resource, dirName string, provider terraform.TerraformProvider, ...)
- func Execute(cmd *cobra.Command, args ...string) (output string, err error)
- func ExecuteC(cmd *cobra.Command, args ...string) (c *cobra.Command, output string, err error)
- func ReadTestFile(p string) ([]byte, error)
- func TestAgainstGoldenFile(got []*resource.Resource, ty string, dirName string, ...)
- func WriteTestFile(p string, content []byte) error
- type Build
- type ScanResult
- func (r *ScanResult) AssertCoverage(expected int)
- func (r *ScanResult) AssertDeletedCount(count int)
- func (r *ScanResult) AssertDriftCountTotal(count int)
- func (r ScanResult) AssertInfrastructureIsInSync()
- func (r ScanResult) AssertInfrastructureIsNotSync()
- func (r *ScanResult) AssertManagedCount(count int)
- func (r *ScanResult) AssertResourceDeleted(id, ty string)
- func (r *ScanResult) AssertResourceDriftCount(id, ty string, count int)
- func (r *ScanResult) AssertResourceHasDrift(id, ty string, change analyser.Change)
- func (r *ScanResult) AssertResourceHasNoDrift(id, ty string)
- func (r *ScanResult) AssertResourceUnmanaged(id, ty string)
- func (r *ScanResult) AssertUnmanagedCount(count int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CtyTestDiff ¶
func CtyTestDiff(got []*resource.Resource, dirName string, provider terraform.TerraformProvider, deserializer *resource.Deserializer, shouldUpdate bool, t *testing.T)
CtyTestDiff Deprecated
func ReadTestFile ¶
func TestAgainstGoldenFile ¶
func WriteTestFile ¶
Types ¶
type ScanResult ¶
type ScanResult struct { *require.Assertions *analyser.Analysis }
func NewScanResult ¶
func NewScanResult(t *testing.T, analysis *analyser.Analysis) *ScanResult
func (*ScanResult) AssertCoverage ¶
func (r *ScanResult) AssertCoverage(expected int)
func (*ScanResult) AssertDeletedCount ¶
func (r *ScanResult) AssertDeletedCount(count int)
func (*ScanResult) AssertDriftCountTotal ¶
func (r *ScanResult) AssertDriftCountTotal(count int)
func (ScanResult) AssertInfrastructureIsInSync ¶
func (r ScanResult) AssertInfrastructureIsInSync()
func (ScanResult) AssertInfrastructureIsNotSync ¶
func (r ScanResult) AssertInfrastructureIsNotSync()
func (*ScanResult) AssertManagedCount ¶
func (r *ScanResult) AssertManagedCount(count int)
func (*ScanResult) AssertResourceDeleted ¶
func (r *ScanResult) AssertResourceDeleted(id, ty string)
func (*ScanResult) AssertResourceDriftCount ¶
func (r *ScanResult) AssertResourceDriftCount(id, ty string, count int)
func (*ScanResult) AssertResourceHasDrift ¶
func (r *ScanResult) AssertResourceHasDrift(id, ty string, change analyser.Change)
func (*ScanResult) AssertResourceHasNoDrift ¶
func (r *ScanResult) AssertResourceHasNoDrift(id, ty string)
func (*ScanResult) AssertResourceUnmanaged ¶
func (r *ScanResult) AssertResourceUnmanaged(id, ty string)
func (*ScanResult) AssertUnmanagedCount ¶
func (r *ScanResult) AssertUnmanagedCount(count int)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.