github.com/songshiyun/revive@v1.1.5-0.20220323112655-f8433a19b3c5/test/optimize-operands-order_test.go (about) 1 package test 2 3 import ( 4 "testing" 5 6 "github.com/songshiyun/revive/lint" 7 "github.com/songshiyun/revive/rule" 8 ) 9 10 // Test that left and right side of Binary operators (only AND, OR) are swapable 11 func TestOptimizeOperandsOrder(t *testing.T) { 12 testRule(t, "optimize-operands-order", &rule.OptimizeOperandsOrderRule{}, &lint.RuleConfig{}) 13 }