github.com/nikandfor/tlog@v0.21.5-0.20231108111739-3ef89426a96d/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 }