mirror of
https://github.com/mgechev/revive.git
synced 2024-11-28 08:49:11 +02:00
771aa23069
* bool-literal-in-expr (new rule) * bool-literal-in-expr: add test case and fix typo
13 lines
194 B
Go
13 lines
194 B
Go
package test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/mgechev/revive/rule"
|
|
)
|
|
|
|
// BoolLiteral rule.
|
|
func TestBoolLiteral(t *testing.T) {
|
|
testRule(t, "bool-literal-in-expr", &rule.BoolLiteralRule{})
|
|
}
|