mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 15:10:12 +01:00
14 lines
235 B
Go
14 lines
235 B
Go
|
|
package model
|
||
|
|
|
||
|
|
import (
|
||
|
|
"testing"
|
||
|
|
)
|
||
|
|
|
||
|
|
func TestPDFParser(t *testing.T) {
|
||
|
|
p := &PdfAssetParser{}
|
||
|
|
res := p.Parse("../../testdata/parsertest.pdf")
|
||
|
|
if res == nil || res.Content == "" {
|
||
|
|
t.Fatalf("empty or nil PDF content result")
|
||
|
|
}
|
||
|
|
}
|