Skip to content

Commit af7c9e8

Browse files
committed
add some initialisms to the tests
1 parent 12a95aa commit af7c9e8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pkg/analyzer/facts_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,8 @@ func Test_isValidErrorTypeName_invalidTypes(t *testing.T) {
175175
"errZIP",
176176
"nestedErr",
177177
"withStackErr",
178+
"withStackERR",
179+
"withStackERROR",
178180
} {
179181
if isValidErrorTypeName(tt) {
180182
t.Errorf("%q must be invalid error type name", tt)
@@ -545,6 +547,8 @@ func Test_isValidErrorVarName_validVars(t *testing.T) {
545547
func Test_isValidErrorVarName_invalidVars(t *testing.T) {
546548
for _, tt := range []string{
547549
"Canceled",
550+
"ERRORExec",
551+
"ERRExec",
548552
"ErrExecErr",
549553
"ErrorExec",
550554
"IncorrectPasswordError",
@@ -569,6 +573,8 @@ func Test_isValidErrorVarName_invalidVars(t *testing.T) {
569573
"testError",
570574
"timeoutProtoErr",
571575
"viewCloseError",
576+
"viewERR",
577+
"viewERROR",
572578
"viewError",
573579
} {
574580
if isValidErrorVarName(tt) {

0 commit comments

Comments
 (0)