Skip to content

Commit 9f32a2f

Browse files
committed
Rename test funcs
1 parent 4148c57 commit 9f32a2f

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

eval_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ func TestEval(t *testing.T) {
424424
}
425425
}
426426

427-
func TestEvalError(t *testing.T) {
427+
func TestEval_error(t *testing.T) {
428428
for _, test := range evalErrorTests {
429429
_, err := Eval(test.input, test.env)
430430
if err == nil {
@@ -436,7 +436,7 @@ func TestEvalError(t *testing.T) {
436436
}
437437
}
438438

439-
func TestEvalComplex(t *testing.T) {
439+
func TestEval_complex(t *testing.T) {
440440
type cookie struct {
441441
Key string
442442
Value string
@@ -480,7 +480,7 @@ func TestEvalComplex(t *testing.T) {
480480
}
481481
}
482482

483-
func TestEvalRunPanic(t *testing.T) {
483+
func TestEval_panic(t *testing.T) {
484484
node, err := Parse("foo()")
485485
if err != nil {
486486
t.Fatal(err)

lexer_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ func TestLex(t *testing.T) {
134134
}
135135
}
136136

137-
func TestLexError(t *testing.T) {
137+
func TestLex_error(t *testing.T) {
138138
for _, test := range lexErrorTests {
139139
_, err := lex(test.input)
140140
if !strings.HasPrefix(err.Error(), test.err) || test.err == "" {

parser_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ func TestParse(t *testing.T) {
184184
}
185185
}
186186

187-
func TestParseError(t *testing.T) {
187+
func TestParse_error(t *testing.T) {
188188
for _, test := range parseErrorTests {
189189
_, err := Parse(test.input)
190190
if err == nil {

0 commit comments

Comments
 (0)