Skip to content

Commit

Permalink
Remove leftover TODOs related to testing
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiante committed Feb 2, 2024
1 parent a8a6af9 commit abf163f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 5 additions & 5 deletions r_store_search.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ type SearchResponseChannel struct {
Title string `xml:"title"`
Link string `xml:"link"`
Description string `xml:"description"`
TotalResults int `xml:"totalResults"` // TODO: Assert in unmarshal test
ItemsPerPage int `xml:"itemsPerPage"` // TODO: Assert in unmarshal test
StartIndex int `xml:"startIndex"` // TODO: Assert in unmarshal test
TotalResults int `xml:"totalResults"`
ItemsPerPage int `xml:"itemsPerPage"`
StartIndex int `xml:"startIndex"`
Query struct {
Role string `xml:"role,attr"`
SearchTerms string `xml:"searchTerms,attr"`
Expand All @@ -114,10 +114,10 @@ type SearchResponseItem struct {
HistoryLink Link `xml:"historyLink"`
VerifyLink Link `xml:"verifyLink"`
DocumentType string `xml:"documentType"`
Fields []*RecordField `xml:"field"` // TODO: Assert and check in get attachment response if this is the correct way to handle recurring fields
Fields []*RecordField `xml:"field"`
MasterId uuid.UUID `xml:"masterId"`
ArchiveDateTime time.Time `xml:"archiveDateTime"`
ID uuid.UUID `xml:"id"`
Id uuid.UUID `xml:"id"`
Version string `xml:"version"`
ArchiverLogin string `xml:"archiverLogin"`
Archiver string `xml:"archiver"`
Expand Down
2 changes: 2 additions & 0 deletions r_store_search_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ func TestStoreClient_Search(t *testing.T) {
// assert search result in general
assert.Equal(t, "Amazo*", response.Query.SearchTerms)
assert.Greater(t, response.TotalResults, 0)
assert.Greater(t, response.ItemsPerPage, 0)
assert.Greater(t, response.EffectiveResults, 0)

// assert single hit
Expand All @@ -55,6 +56,7 @@ func TestStoreClient_Search(t *testing.T) {
// assert search result in general
assert.Equal(t, "Amazo*", response.Query.SearchTerms)
assert.Greater(t, response.TotalResults, 0)
assert.Greater(t, response.ItemsPerPage, 0)
assert.Greater(t, response.EffectiveResults, 0)

// assert single hit
Expand Down

0 comments on commit abf163f

Please sign in to comment.