Merged in feature/newclean (pull request #81)

Same Clean Output

* bitoftesting

* cleantest
This commit is contained in:
Michael McGuinness
2025-03-03 21:56:17 +00:00
parent 46dce9a64b
commit 2061543fc9
16 changed files with 646 additions and 135 deletions
+3 -3
View File
@@ -72,9 +72,9 @@ func TestDocCleanRunner(t *testing.T) {
)
cleanId := database.MustToDBUUID(uuid.New())
mimeType := "application/pdf"
dbmimetype := repository.NullCleanmimetypes{
Valid: true,
Cleanmimetypes: repository.Cleanmimetypes(mimeType),
dbmimetype := repository.NullCleanmimetype{
Valid: true,
Cleanmimetype: repository.Cleanmimetype(mimeType),
}
pool.ExpectQuery("name: GetDocumentCleanEntry :one").WithArgs(database.MustToDBUUID(doc.ID)).WillReturnRows(
pgxmock.NewRows([]string{"id", "documentId", "bucket", "key", "version", "mimetype", "fail"}).