fix:#36 fixed tests, naming, and removed old duplicated code

This commit is contained in:
Elmar Kresse
2024-06-18 18:53:29 +02:00
parent 75752d3fb1
commit 4792b07e8c
8 changed files with 9 additions and 566 deletions

View File

@@ -38,13 +38,13 @@ func Test_buildIcalQueryForModules(t *testing.T) {
},
{
name: "one module",
args: args{modules: []string{"test"}},
want: dbx.HashExp{"uuid": "test"},
args: args{modules: []string{"77eddc32-c49d-5d0a-8c36-17b266396641"}},
want: dbx.HashExp{"uuid": "77eddc32-c49d-5d0a-8c36-17b266396641"},
},
{
name: "two modules",
args: args{modules: []string{"test", "test2"}},
want: dbx.Or(dbx.HashExp{"uuid": "test"}, dbx.HashExp{"uuid": "test2"}),
args: args{modules: []string{"9e5081e6-4c56-57b9-9965-f6dc74559755", "48cd8c4e-fb70-595c-9dfb-7035f56326d9"}},
want: dbx.Or(dbx.HashExp{"uuid": "9e5081e6-4c56-57b9-9965-f6dc74559755"}, dbx.HashExp{"uuid": "48cd8c4e-fb70-595c-9dfb-7035f56326d9"}),
},
}
for _, tt := range tests {