mirror of
https://github.com/sajari/docconv.git
synced 2026-10-16 21:21:59 +08:00
70dbd5cc69
In [1], from Go1.15 path separators are rejected in ioutil.TempFile. Refs #87 [1] https://github.com/golang/go/commit/12cd55c062d6062a64076cb37f12ab7646df1be7
14 lines
204 B
Go
14 lines
204 B
Go
package docconv
|
|
|
|
import (
|
|
"strings"
|
|
"testing"
|
|
)
|
|
|
|
func TestNewLocalFile(t *testing.T) {
|
|
_, err := NewLocalFile(strings.NewReader("test"))
|
|
if err != nil {
|
|
t.Fatalf("got error %v, want nil", err)
|
|
}
|
|
}
|