Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TestCostComponent ¶
func TestCostComponent(t *testing.T, costComponents []*schema.CostComponent, costComponentCheck CostComponentCheck)
func TestResource ¶
func TestResource(t *testing.T, resources []*schema.Resource, resourceCheck ResourceCheck)
Types ¶
type CostCheckFunc ¶
type CostCheckFunc func(*testing.T, *schema.CostComponent)
func HourlyPriceMultiplierCheck ¶
func HourlyPriceMultiplierCheck(multiplier decimal.Decimal) CostCheckFunc
func MonthlyPriceMultiplierCheck ¶
func MonthlyPriceMultiplierCheck(multiplier decimal.Decimal) CostCheckFunc
type CostComponentCheck ¶
type CostComponentCheck struct { Name string PriceHash string HourlyCostCheck CostCheckFunc MonthlyCostCheck CostCheckFunc }
type ResourceCheck ¶
type ResourceCheck struct { Name string CostComponentChecks []CostComponentCheck SubResourceChecks []ResourceCheck }
Click to show internal directories.
Click to hide internal directories.