12313
This commit is contained in:
parent
d4540c5e90
commit
da18e3e22d
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user