This commit is contained in:
huangsimin 2018-12-19 18:32:06 +08:00
parent d4540c5e90
commit da18e3e22d

View File

@ -2,6 +2,7 @@ package parser
import (
"encoding/json"
"errors"
"log"
"testing"
)
@ -29,10 +30,10 @@ func (tt *Toutiao) ToDoParser(adstring string) (string, error) {
log.Println(adparser)
data, err := adparser.ToJSON()
if err != nil {
panic(err)
return "", err
}
log.Println(string(data))
return "", nil
// log.Println(string(data))
return string(data), errors.New("fuck test")
}
func TestParserToutiao(t *testing.T) {