コード例 #1
0
ファイル: tdgrep_test.go プロジェクト: slotties/jtdutils
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))
}