func TestIsMatching_Name_Exact(t *testing.T) { exactMatch, _ := createFilters("foo", "") fooThread := tdformat.Thread{} fooThread.Name = "foo" barThread := tdformat.Thread{} barThread.Name = "bar" assert.True(t, isMatching(&fooThread, &exactMatch)) assert.False(t, isMatching(&barThread, &exactMatch)) }