Versions in this module Expand all Collapse all v1 v1.8.1 Feb 13, 2021 Changes in this version + func AssertIssues(t *testing.T, expected Issues, actual Issues) + func AssertIssuesWithoutRange(t *testing.T, expected Issues, actual Issues) + type Config struct + Rules []RuleConfig + type Issue struct + Message string + Range hcl.Range + Rule tflint.Rule + type Issues []*Issue + type RuleConfig struct + Body hcl.Body + Enabled bool + Name string + type Runner struct + Files map[string]*hcl.File + Issues Issues + func TestRunner(t *testing.T, files map[string]string) *Runner + func (r *Runner) Backend() (*configs.Backend, error) + func (r *Runner) Config() (*configs.Config, error) + func (r *Runner) DecodeRuleConfig(name string, ret interface{}) error + func (r *Runner) EmitIssue(rule tflint.Rule, message string, location hcl.Range) error + func (r *Runner) EmitIssueOnExpr(rule tflint.Rule, message string, expr hcl.Expression) error + func (r *Runner) EnsureNoError(err error, proc func() error) error + func (r *Runner) EvaluateExpr(expr hcl.Expression, ret interface{}, wantTy *cty.Type) error + func (r *Runner) EvaluateExprOnRootCtx(expr hcl.Expression, ret interface{}, wantType *cty.Type) error + func (r *Runner) File(filename string) (*hcl.File, error) + func (r *Runner) IsNullExpr(expr hcl.Expression) (bool, error) + func (r *Runner) RootProvider(name string) (*configs.Provider, error) + func (r *Runner) WalkModuleCalls(walker func(*configs.ModuleCall) error) error + func (r *Runner) WalkResourceAttributes(resourceType, attributeName string, walker func(*hcl.Attribute) error) error + func (r *Runner) WalkResourceBlocks(resourceType, blockType string, walker func(*hcl.Block) error) error + func (r *Runner) WalkResources(resourceType string, walker func(*configs.Resource) error) error