mirror of
https://github.com/akvorado/akvorado.git
synced 2025-12-12 06:24:10 +01:00
console: implement "filter/saved" endpoints
This commit is contained in:
21
console/database/tests.go
Normal file
21
console/database/tests.go
Normal file
@@ -0,0 +1,21 @@
|
||||
//go:build !release
|
||||
|
||||
package database
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"akvorado/common/helpers"
|
||||
"akvorado/common/reporter"
|
||||
)
|
||||
|
||||
// NewMock instantiantes a new authentication component
|
||||
func NewMock(t *testing.T, r *reporter.Reporter) *Component {
|
||||
t.Helper()
|
||||
c, err := New(r, DefaultConfiguration())
|
||||
if err != nil {
|
||||
t.Fatalf("New() error:\n%+v", err)
|
||||
}
|
||||
helpers.StartStop(t, c)
|
||||
return c
|
||||
}
|
||||
Reference in New Issue
Block a user