From 1c13b2de1ec994ef4f55c4427d3e3462ceed959c Mon Sep 17 00:00:00 2001 From: Miha Lunar Date: Thu, 18 May 2023 15:24:22 +0200 Subject: [PATCH] Remove tests for deleted code --- search/query_test.go | 52 -------------------------------------------- 1 file changed, 52 deletions(-) diff --git a/search/query_test.go b/search/query_test.go index d9a7270..d23520c 100644 --- a/search/query_test.go +++ b/search/query_test.go @@ -41,58 +41,6 @@ func TestTag(t *testing.T) { } } -func TestWhereEmpty(t *testing.T) { - query, err := Parse("") - if err != nil { - t.Error(err) - } - actual := query.Where("tag", "name") - expected := Where{ - SQL: "", - Texts: nil, - } - assert.Equal(t, expected, actual) -} - -func TestWhereTag(t *testing.T) { - query, err := Parse("tag:hello") - if err != nil { - t.Error(err) - } - actual := query.Where("tag", "name") - expected := Where{ - SQL: "name = ?", - Texts: []string{"hello"}, - } - assert.Equal(t, expected, actual) -} - -func TestWhereTags(t *testing.T) { - query, err := Parse("tag:hello tag:world") - if err != nil { - t.Error(err) - } - actual := query.Where("tag", "name") - expected := Where{ - SQL: "name = ? AND name = ?", - Texts: []string{"hello", "world"}, - } - assert.Equal(t, expected, actual) -} - -func TestWhereExifTag(t *testing.T) { - query, err := Parse("tag:exif:model:dji-osmo-action") - if err != nil { - t.Error(err) - } - actual := query.Where("tag", "name") - expected := Where{ - SQL: "name = ?", - Texts: []string{"exif:model:dji-osmo-action"}, - } - assert.Equal(t, expected, actual) -} - func TestQualifierValues(t *testing.T) { query, err := Parse("tag:hello word tag:world hi:there") if err != nil {