Merged in feature/inlinetable (pull request #148)

Table Aligned Example

* tablealigned
This commit is contained in:
Michael McGuinness
2025-05-21 18:19:19 +00:00
parent e23ada9a8e
commit 9ee97d0c63
4 changed files with 14605 additions and 0 deletions
@@ -142,6 +142,25 @@ func TestGetDocumentText(t *testing.T) {
assertReaders(t, txtFile, text)
})
t.Run("table_aligned", func(t *testing.T) {
t.Parallel()
cfg := DocTextConfig{}
svc := Service{
cfg: &cfg,
}
mockTextract := textractmock.NewMockTextractClient(t)
cfg.TextractClient = mockTextract
textractBaseOut, pdf, txtFile, close := getFiles(t, "table_aligned")
defer close()
textExpectations(t, ctx, mockTextract, pdf, textractBaseOut)
text, err := svc.getDocumentText(ctx, pdf)
require.NoError(t, err)
assertReaders(t, txtFile, text)
})
t.Run("cnc_01-06", func(t *testing.T) {
t.Parallel()