Versions in this module Expand all Collapse all v0 v0.38.0 Jun 12, 2023 Changes in this version + 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 TestAgainstGoldenFileNoCty(got []*resource.Resource, ty string, dirName string, ...) + func WriteTestFile(p string, content []byte) error + type Build struct + func (b Build) IsRelease() bool + func (b Build) IsUsageReportingEnabled() bool + type ScanResult struct + func NewScanResult(t *testing.T, analysis *analyser.Analysis) *ScanResult + func (r *ScanResult) AssertCoverage(expected int) + func (r *ScanResult) AssertDeletedCount(count int) + func (r *ScanResult) AssertDriftCountTotal(count int) + 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) + func (r ScanResult) AssertInfrastructureIsInSync() + func (r ScanResult) AssertInfrastructureIsNotSync()