支持了实际类型显示,优化dbopen
This commit is contained in:
@@ -15,8 +15,8 @@ func TestGetBDVersion(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestBD(t *testing.T) {
|
||||
db := BDOpen("path")
|
||||
if db == nil {
|
||||
db, err := BDOpen("path")
|
||||
if err != nil {
|
||||
t.Errorf("Expected non-nil DBStruct, got nil")
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user