Add basic untested ability to do searches using atoms containing custom columns

This commit is contained in:
David Dworken
2022-11-01 10:23:35 -07:00
parent c70134a6fb
commit 8a3969cfc4
5 changed files with 170 additions and 125 deletions

View File

@ -187,7 +187,7 @@ func TestSearch(t *testing.T) {
db.Create(entry2)
// Search for data
results, err := data.Search(db, "ls", 5)
results, err := lib.Search(ctx, db, "ls", 5)
testutils.Check(t, err)
if len(results) != 2 {
t.Fatalf("Search() returned %d results, expected 2!", len(results))