github.com/anycable/anycable-go@v1.5.1/cli/options_test.go (about)

     1  package cli
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/stretchr/testify/assert"
     7  )
     8  
     9  func TestParseTagsArg(t *testing.T) {
    10  	expected := map[string]string{"env": "dev", "rev": "1.1"}
    11  
    12  	headers := parseTags("env:dev,rev:1.1")
    13  	assert.Equal(t, expected, headers)
    14  }