1 Star 0 Fork 0

李佳柠/Business flow verification

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
db_test.go 1.46 KB
一键复制 编辑 原始数据 按行查看 历史
lemon-ljn 提交于 2024-12-11 21:44 . Update submodule content
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)
//}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/lemon-ljn/business-flow-verification.git
[email protected]:lemon-ljn/business-flow-verification.git
lemon-ljn
business-flow-verification
Business flow verification
master

搜索帮助