1
0
mirror of https://github.com/mgechev/revive.git synced 2024-11-28 08:49:11 +02:00
revive/test/get-return_test.go
chavacava f8c1094ecd New rule: get-return (#23)
* Adds rule superfluous-else (an extension of indent-error-flow)

* Fix superfluous-else rule struct namming.

* Adds superfuous-else rule to the rules table

* Adds confusing-naming rule

* adds multifile test

* clean-up

* clean master

* running version

* isGetter now checks for non lowercase characters
2018-06-22 21:21:09 +10:00

12 lines
159 B
Go

package test
import (
"testing"
"github.com/mgechev/revive/rule"
)
func TestGetReturn(t *testing.T) {
testRule(t, "get-return", &rule.GetReturnRule{})
}