mirror of
https://github.com/pbnjay/grate.git
synced 2024-12-13 22:04:59 +02:00
41 lines
684 B
Go
41 lines
684 B
Go
|
package xls
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
"log"
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
|
func TestHeader(t *testing.T) {
|
||
|
wb, err := Open(context.Background(), "testdata/test.xls")
|
||
|
if err != nil {
|
||
|
t.Fatal(err)
|
||
|
}
|
||
|
log.Println(wb.filename)
|
||
|
}
|
||
|
|
||
|
func TestHeader2(t *testing.T) {
|
||
|
wb, err := Open(context.Background(), "testdata/test2.xls")
|
||
|
if err != nil {
|
||
|
t.Fatal(err)
|
||
|
}
|
||
|
log.Println(wb.filename)
|
||
|
}
|
||
|
|
||
|
func TestHeader3(t *testing.T) {
|
||
|
wb, err := Open(context.Background(), "testdata/test3.xls")
|
||
|
if err != nil {
|
||
|
t.Fatal(err)
|
||
|
}
|
||
|
log.Println(wb.filename)
|
||
|
}
|
||
|
|
||
|
func TestHeader4(t *testing.T) {
|
||
|
|
||
|
wb, err := Open(context.Background(), "testdata/test4.xls")
|
||
|
if err != nil {
|
||
|
t.Fatal(err)
|
||
|
}
|
||
|
log.Println(wb.filename)
|
||
|
}
|