Fix tests and linter warnings

This commit is contained in:
Daniel 2022-02-01 13:12:46 +01:00
parent 7d2cd6c15d
commit f59ad0357a
162 changed files with 668 additions and 696 deletions

View file

@ -1,4 +1,3 @@
//nolint:unparam,maligned
package hashmap
import (
@ -6,10 +5,9 @@ import (
"sync"
"testing"
"github.com/safing/portbase/database/storage"
"github.com/safing/portbase/database/query"
"github.com/safing/portbase/database/record"
"github.com/safing/portbase/database/storage"
)
var (
@ -18,7 +16,7 @@ var (
_ storage.Batcher = &HashMap{}
)
type TestRecord struct {
type TestRecord struct { //nolint:maligned
record.Base
sync.Mutex
S string
@ -38,6 +36,8 @@ type TestRecord struct {
}
func TestHashMap(t *testing.T) {
t.Parallel()
// start
db, err := NewHashMap("test", "")
if err != nil {