mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-15 00:11:54 +08:00
优化代码
This commit is contained in:
@@ -11,8 +11,8 @@ import (
|
||||
"time"
|
||||
)
|
||||
|
||||
func TestIPListDB_AddItem(t *testing.T) {
|
||||
db, err := iplibrary.NewIPListSqlite()
|
||||
func TestSQLiteIPList_AddItem(t *testing.T) {
|
||||
db, err := iplibrary.NewSQLiteIPList()
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
@@ -58,8 +58,8 @@ func TestIPListDB_AddItem(t *testing.T) {
|
||||
t.Log("ok")
|
||||
}
|
||||
|
||||
func TestIPListDB_ReadItems(t *testing.T) {
|
||||
db, err := iplibrary.NewIPListSqlite()
|
||||
func TestSQLiteIPList_ReadItems(t *testing.T) {
|
||||
db, err := iplibrary.NewSQLiteIPList()
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
@@ -79,8 +79,8 @@ func TestIPListDB_ReadItems(t *testing.T) {
|
||||
logs.PrintAsJSON(items, t)
|
||||
}
|
||||
|
||||
func TestIPListDB_ReadMaxVersion(t *testing.T) {
|
||||
db, err := iplibrary.NewIPListSqlite()
|
||||
func TestSQLiteIPList_ReadMaxVersion(t *testing.T) {
|
||||
db, err := iplibrary.NewSQLiteIPList()
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
@@ -90,8 +90,8 @@ func TestIPListDB_ReadMaxVersion(t *testing.T) {
|
||||
t.Log(db.ReadMaxVersion())
|
||||
}
|
||||
|
||||
func TestIPListDB_UpdateMaxVersion(t *testing.T) {
|
||||
db, err := iplibrary.NewIPListSqlite()
|
||||
func TestSQLiteIPList_UpdateMaxVersion(t *testing.T) {
|
||||
db, err := iplibrary.NewSQLiteIPList()
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user