Documentation
¶
Index ¶
- func AssertGoldenFile(t *testing.T, goldenFilePath string, actual []byte) bool
- func CalcGoldenFileTestdataDirName() string
- func ConfigureTestToCaptureLogs(t *testing.T, runCtx *settings.Session, level string) *bytes.Buffer
- func ConfigureTestToFailOnLogs(t *testing.T, runCtx *settings.Session)
- func CreateDirectoryStructure(t *testing.T, treeOutputLocation string, tmpDir string)
- func FindDirectoriesWithTreeFile(t *testing.T, baseDir string) []string
- func TestCostComponents(t *testing.T, costComponents []*engine.LineItem, checks []CostComponentCheck)
- func TestResources(t *testing.T, resources []*engine.Estimate, checks []ResourceCheck)
- type CostCheckFunc
- type CostComponentCheck
- type ErrorOnAnyWriter
- type ResourceCheck
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertGoldenFile ¶
func CalcGoldenFileTestdataDirName ¶
func CalcGoldenFileTestdataDirName() string
func CreateDirectoryStructure ¶
CreateDirectoryStructure reads a tree command output file and creates the directory structure in the specified temp directory.
func FindDirectoriesWithTreeFile ¶
FindDirectoriesWithTreeFile finds and returns a slice of directory paths within the given base directory that contain a "tree.txt" file.
func TestCostComponents ¶
func TestCostComponents(t *testing.T, costComponents []*engine.LineItem, checks []CostComponentCheck)
func TestResources ¶
func TestResources(t *testing.T, resources []*engine.Estimate, checks []ResourceCheck)
Types ¶
type CostCheckFunc ¶
func HourlyPriceMultiplierCheck ¶
func HourlyPriceMultiplierCheck(multiplier decimal.Decimal) CostCheckFunc
func MonthlyPriceMultiplierCheck ¶
func MonthlyPriceMultiplierCheck(multiplier decimal.Decimal) CostCheckFunc
func NilMonthlyCostCheck ¶
func NilMonthlyCostCheck() CostCheckFunc
type CostComponentCheck ¶
type CostComponentCheck struct {
Name string
PriceHash string
SkipCheck bool
HourlyCostCheck CostCheckFunc
MonthlyCostCheck CostCheckFunc
}
type ErrorOnAnyWriter ¶
type ErrorOnAnyWriter struct {
// contains filtered or unexported fields
}
type ResourceCheck ¶
type ResourceCheck struct {
Name string
SkipCheck bool
CostComponentChecks []CostComponentCheck
SubResourceChecks []ResourceCheck
}
Click to show internal directories.
Click to hide internal directories.