Merged in feature/docresult (pull request #105)

Document Result Endpoint

* testing

* cleantesting

* progress

* query

* lint

* readme

* dockerclient

* api

* passtest

* tests

* test
This commit is contained in:
Michael McGuinness
2025-03-17 18:14:15 +00:00
parent f7c41c4ef3
commit 555b6d420b
105 changed files with 3276 additions and 2484 deletions
+2 -2
View File
@@ -67,7 +67,7 @@ func TestDocCleanRunner(t *testing.T) {
Body: &body,
}
doc := document.Document{
doc := document.DocumentSummary{
ID: bod.ID,
ClientID: uuid.New(),
Hash: "example_hash",
@@ -82,7 +82,7 @@ func TestDocCleanRunner(t *testing.T) {
pgxmock.NewRows([]string{"isclean"}).
AddRow(false),
)
pool.ExpectQuery("name: GetDocument :one").WithArgs(dbid).
pool.ExpectQuery("name: GetDocumentSummary :one").WithArgs(dbid).
WillReturnRows(
pgxmock.NewRows([]string{"id", "clientId", "hash"}).
AddRow(dbid, database.MustToDBUUID(doc.ClientID), doc.Hash),