mirror of
https://gitee.com/willfree/mlsr.git
synced 2026-06-16 17:08:00 +08:00
31 lines
491 B
Go
31 lines
491 B
Go
package tests
|
|
|
|
import (
|
|
"fmt"
|
|
"github.com/tidwall/buntdb"
|
|
"minlib/logicface"
|
|
"mlsr/lsa"
|
|
"testing"
|
|
)
|
|
|
|
func TestName(t *testing.T) {
|
|
fmt.Println("abc")
|
|
s := logicface.LogicFaceTypeEther
|
|
fmt.Println("def", s)
|
|
|
|
ss := lsa.AdjLsaAdjacencyInfo{}
|
|
ss.Status = 1
|
|
|
|
TestBuntDb(t)
|
|
}
|
|
|
|
func TestBuntDb(t *testing.T) {
|
|
// https://github.com/tidwall/buntdb
|
|
db, err := buntdb.Open(":memory:")
|
|
if err != nil {
|
|
fmt.Println("bunt db open err")
|
|
}
|
|
_ = db.Close()
|
|
fmt.Println("bunt db closed")
|
|
}
|