initial draft of neo4j database driver
This commit is contained in:
15
pkg/neo4j/testmain_test.go
Normal file
15
pkg/neo4j/testmain_test.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package neo4j
|
||||
|
||||
import (
|
||||
"os"
|
||||
"testing"
|
||||
)
|
||||
|
||||
// skipIfNeo4jNotAvailable skips the test if Neo4j is not available
|
||||
func skipIfNeo4jNotAvailable(t *testing.T) {
|
||||
// Check if Neo4j connection details are provided
|
||||
uri := os.Getenv("ORLY_NEO4J_URI")
|
||||
if uri == "" {
|
||||
t.Skip("Neo4j not available (set ORLY_NEO4J_URI to enable tests)")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user