tlog.app/go/tlog@v0.23.1/labels_test.go (about) 1 package tlog 2 3 import ( 4 "testing" 5 6 "github.com/nikandfor/assert" 7 ) 8 9 func TestParseLabels(t *testing.T) { 10 l := ParseLabels("_hostname,_user,a=b,c=4") 11 assert.Equal(t, []interface{}{"_hostname", Hostname(), "_user", User(), "a", "b", "c", 4}, l) 12 }