代码拉取完成,页面将自动刷新
package main
import (
"testing"
)
//func TestSearch(t *testing.T) {
// u,err :=QueryOneBid(1)
// if err != nil{
// log.Println(err)
// }
// log.Println(u)
//}
//
//func TestQueryRowsBid(t *testing.T) {
// QueryRowsBid(0)
//}
//func TestInsertBid(t *testing.T) {
// db := ConnectDB("5000")
// s:="abab"
// //InsertBid(db,"1","4","5","6","7","8","9")
// InsertPrePrepare(db,"0","0","0",s,s)
// ans, err := QueryOnePrePrepare(db,0,0)
// if err!= nil{
// log.Println(err)
// }
// log.Println(ans.digest)
// a := QueryRowsPrePrepare(db,0)
// log.Println(a)
//}
func TestConnectDB(t *testing.T) {
db := ConnectDB(3)
Prepared(db, 1)
//a := ExistEventDigestAndView(db, "301da46a16b5dec051317b2225aa4554de8f7fd6ef681e59645b4e9f8e7806fb","1")
////InsertEvent(db,"1","","","","","1","","")
////InsertEvent(db,"2","","","","","1","","")
////InsertEvent(db,"5","","","","","1","","")
////a := QueryEventMaxSeq(db)
//log.Println(a)
//b := ExistEventDigest(db,"301da46a16b5dec051317b2225aa4554de8f7fd6ef681e59645b4e9f8e7806fb")
//log.Println(b)
//a := GetCheckPointString(db)
//log.Println(a)
//n := new(node)
//QueryRowsBid(db,0)
//CreateBid(db)
//UpdateBid()
//InsertClient(db, "1000","message","digest","106465454543000","operation","r.ClientAddr","noCert")
//InsertPrePrepare(db,"N0",n.NewID(),"N0","message","digest")
//InsertBTrf(db, "1","bTrf","prehash",
//"1","1","a","b","a","b",
//"hash")
}
//
//func TestDeleteBid(t *testing.T) {
// DeleteBid(2)
// QueryRowsBid(0)
//}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。