1
0
mirror of https://github.com/mgechev/revive.git synced 2024-11-24 08:32:22 +02:00
revive/test/empty-block_test.go
chavacava 1fa5046357 Adds new rule empty-block (#14)
* Adds rule superfluous-else (an extension of indent-error-flow)

* initial (non functional) version

* empty-block working version

* adds tests for empty-block rule

* Adds empty-block to the rules table

* code clean-up
2018-06-08 12:41:49 -07:00

13 lines
186 B
Go

package test
import (
"testing"
"github.com/mgechev/revive/rule"
)
// TestEmptyBlock rule.
func TestEmptyBlock(t *testing.T) {
testRule(t, "empty-block", &rule.EmptyBlockRule{})
}