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:
16
export/json_test.go
Normal file
16
export/json_test.go
Normal file
@ -0,0 +1,16 @@
|
||||
package export
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestJSONExporter_Export(t *testing.T) {
|
||||
ch := make(chan interface{})
|
||||
defer close(ch)
|
||||
|
||||
exporter := &JSON{
|
||||
FileName: "out.json",
|
||||
Indent: " ",
|
||||
}
|
||||
go exporter.Export(ch)
|
||||
|
||||
ch <- map[string]string{"key": "value"}
|
||||
}
|
Reference in New Issue
Block a user