Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sundowndev
GitHub Repository: sundowndev/phoneinfoga
Path: blob/master/web/v2/api/handlers/init_test.go
994 views
1
package handlers_test
2
3
import (
4
"github.com/stretchr/testify/assert"
5
"github.com/sundowndev/phoneinfoga/v2/lib/filter"
6
"github.com/sundowndev/phoneinfoga/v2/web/v2/api/handlers"
7
"testing"
8
)
9
10
func TestInit(t *testing.T) {
11
handlers.Init(filter.NewEngine())
12
assert.NotNil(t, handlers.RemoteLibrary)
13
assert.Greater(t, len(handlers.RemoteLibrary.GetAllScanners()), 0)
14
}
15
16