INNER CODE UNIT · Go
getDbURL
apache/casbin-mongodb-adapter · adapter_test.go:35
func getDbURL() string {
if testDbURL == "" {
testDbURL = "127.0.0.1:27017"
}
return testDbURL
}
func getReplicaSetURL() string {
if testReplicaSetURL == "" {
testReplicaSetURL = "127.0.0.1:42069"
}
return testReplicaSetURL
}
func testGetPolicy(t *testing.T, e *casbin.Enforcer, res [][]string) {
t.Helper()
myRes, err := e.GetPolicy()
if err != nil {