eba36b0c95
TODO: 分解成多任务服务机制. 让每个子任务独立互不干扰.
25 lines
599 B
Go
25 lines
599 B
Go
package main
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestStoreInsert(t *testing.T) {
|
|
// ht := hunter.NewHunter(openrecRanking)
|
|
// ht.Execute()
|
|
}
|
|
|
|
func TestStoreInsertCase1(t *testing.T) {
|
|
// extractorURI := "root:@tcp(127.0.0.1:4000)/intimate_extractor?charset=utf8"
|
|
// db, err := sql.Open("mysql", extractorURI)
|
|
// defer db.Close()
|
|
// if err != nil {
|
|
// t.Error(err)
|
|
// }
|
|
|
|
// insertsql := "insert into anchor_info(uid, platform, anchor_name, platform_url) values(?,?,?,?)"
|
|
// _, err = db.Exec(insertsql, string(uuid.NewV4().String()), "1", "1", "1")
|
|
// t.Error(err, len(uuid.NewV4().String()))
|
|
|
|
}
|