Attribute extractor added. HTML extractor added. Outer HTML Extractor added.
exporter package renamed to export, extractor package renamed to extract for simplicity.
This commit is contained in:
17
export/csv_test.go
Normal file
17
export/csv_test.go
Normal file
@ -0,0 +1,17 @@
|
||||
package export
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestCSVExporter_Export(t *testing.T) {
|
||||
ch := make(chan interface{})
|
||||
defer close(ch)
|
||||
|
||||
exporter := &CSV{
|
||||
FileName: "out.csv",
|
||||
Comma: ';',
|
||||
}
|
||||
go exporter.Export(ch)
|
||||
|
||||
ch <- []string{"1", "2"}
|
||||
ch <- map[string]string{"key1": "value1", "key2": "value2"}
|
||||
}
|
Reference in New Issue
Block a user