(t *testing.T)
| 59 | } |
| 60 | |
| 61 | func TestSQLiteIPList_ReadItems(t *testing.T) { |
| 62 | db, err := iplibrary.NewSQLiteIPList() |
| 63 | if err != nil { |
| 64 | t.Fatal(err) |
| 65 | } |
| 66 | defer func() { |
| 67 | _ = db.Close() |
| 68 | }() |
| 69 | |
| 70 | defer func() { |
| 71 | _ = db.Close() |
| 72 | }() |
| 73 | |
| 74 | items, goNext, err := db.ReadItems(0, 2) |
| 75 | if err != nil { |
| 76 | t.Fatal(err) |
| 77 | } |
| 78 | t.Log("goNext:", goNext) |
| 79 | logs.PrintAsJSON(items, t) |
| 80 | } |
| 81 | |
| 82 | func TestSQLiteIPList_ReadMaxVersion(t *testing.T) { |
| 83 | db, err := iplibrary.NewSQLiteIPList() |
nothing calls this directly
no test coverage detected