mirror of
https://github.com/mgechev/revive.git
synced 2024-11-24 08:32:22 +02:00
67c83886d7
* fisrt working version of late-return rule * late-update: adds doc * renames to early-return * fix rule failure condition * fix alphabetical sorting of early-return
13 lines
209 B
Go
13 lines
209 B
Go
package test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/mgechev/revive/rule"
|
|
)
|
|
|
|
// TestEarlyReturn tests early-return rule.
|
|
func TestEarlyReturn(t *testing.T) {
|
|
testRule(t, "early-return", &rule.EarlyReturnRule{})
|
|
}
|