lintError=fmt.Errorf("templates: \"%s\". Wrap your substitution functions in quotes or use the sprig \"quote\" function: %s -> %s",templateName,str,result)
returnfmt.Errorf("wrap substitution functions in quotes or use the sprig \"quote\" function: %s -> %s",str,result)
t.Errorf("RunLinterRule(%d, %v), linter.Messages should now have %d message, we got %d",test.Severity,test.LintError,test.ExpectedMessages,len(linter.Messages))
t.Errorf("RunLinterRule(%d, \"chart\", %v), linter.Messages should now have %d message, we got %d",test.Severity,test.LintError,test.ExpectedMessages,len(linter.Messages))
t.Errorf("RunLinterRule(%d, %v), linter.HighestSeverity should be %d, we got %d",test.Severity,test.LintError,test.ExpectedHighestSeverity,linter.HighestSeverity)
t.Errorf("RunLinterRule(%d, \"chart\", %v), linter.HighestSeverity should be %d, we got %d",test.Severity,test.LintError,test.ExpectedHighestSeverity,linter.HighestSeverity)
}
}
ifisValid!=test.ExpectedReturn{
ifisValid!=test.ExpectedReturn{
t.Errorf("RunLinterRule(%d, %v), should have returned %t but returned %t",test.Severity,test.LintError,test.ExpectedReturn,isValid)
t.Errorf("RunLinterRule(%d, \"chart\", %v), should have returned %t but returned %t",test.Severity,test.LintError,test.ExpectedReturn,isValid)