1 package integration 2 3 import ( 4 "testing" 5 6 "github.com/stretchr/testify/assert" 7 ) 8 9 func TestOnly(t *testing.T) { 10 isIntegrationTest = false 11 assert.False(t, Only(true)) 12 assert.False(t, Only(false)) 13 14 isIntegrationTest = true 15 assert.True(t, Only(true)) 16 assert.False(t, Only(false)) 17 } 18