github.com/emitter-io/go/v2@v2.1.0/options_test.go (about) 1 package emitter 2 3 import ( 4 "testing" 5 6 "github.com/stretchr/testify/assert" 7 ) 8 9 func TestOptions(t *testing.T) { 10 assert.Equal(t, "me=0", WithoutEcho().String()) 11 assert.Equal(t, "ttl=5", WithTTL(5).String()) 12 assert.Equal(t, "last=5", WithLast(5).String()) 13 }