18 lines
		
	
	
		
			384 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			384 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| //golangcitest:args -Etestifylint
 | |
| //golangcitest:config_path testdata/configs/testifylint_bool_compare_only.yml
 | |
| package testdata
 | |
| 
 | |
| import (
 | |
| 	"testing"
 | |
| 
 | |
| 	"github.com/stretchr/testify/assert"
 | |
| )
 | |
| 
 | |
| type Bool bool
 | |
| 
 | |
| func TestTestifylint(t *testing.T) {
 | |
| 	var predicate bool
 | |
| 	assert.Equal(t, predicate, true) // want "bool-compare: use assert\\.True"
 | |
| 	assert.Equal(t, Bool(predicate), false)
 | |
| }
 | 
