t.Fatalf(`"has-lint.star" requires linting but the verifyStarlark function provided no linting error`)
}
iflen(verificationErrs)>1{
t.Fatalf(`verifyStarlark returned multiple errors for the "has-lint.star" file but only one was expected: %v`,verificationErrs)
}
if!strings.Contains(verificationErrs[0].Error(),"has-lint.star:1: module-docstring: The file has no module docstring."){
t.Fatalf(`"has-lint.star" is missing a module docstring but the verifyStarlark function linting error did not mention this, instead we got: %v`,verificationErrs[0])
t.Fatalf(`Two files require linting but the verifyStarlark function provided no linting error`)
}
iflen(verificationErrs)==1{
t.Fatalf(`Two files require linting but the verifyStarlark function provided only one linting error: %v`,verificationErrs[0])
}
iflen(verificationErrs)>2{
t.Fatalf(`verifyStarlark returned more errors than expected: %v`,verificationErrs)
}
if!strings.Contains(verificationErrs[0].Error(),"has-lint.star:1: module-docstring: The file has no module docstring."){
t.Errorf(`"has-lint.star" is missing a module docstring but the verifyStarlark function linting error did not mention this, instead we got: %v`,verificationErrs[0])
}
if!strings.Contains(verificationErrs[1].Error(),"has-lint2.star:1: module-docstring: The file has no module docstring."){
t.Fatalf(`"has-lint2.star" is missing a module docstring but the verifyStarlark function linting error did not mention this, instead we got: %v`,verificationErrs[0])