Documentation ¶
Index ¶
- Constants
- type CypherTemplate
- type Datastore
- func (ds *Datastore) CleanUpInstance(instanceID string) error
- func (ds *Datastore) CreateCPIHCodeList() error
- func (ds *Datastore) CreateGenericHierarchy(hierarchyCode string) error
- func (ds *Datastore) CreateInstanceNode(instanceID string) (int64, error)
- func (ds *Datastore) GetInstanceProperties(instanceID string) (map[string]interface{}, error)
- func (ds *Datastore) Setup() error
- func (ds *Datastore) TeardownHierarchy() error
- func (ds *Datastore) TeardownInstance() error
Constants ¶
View Source
const GenericHierarchyCPIHTestData = "../testDataSetup/neo4j/genericHierarchyCPIH.cypher"
View Source
const HierarchyTestData = "../../testDataSetup/neo4j/hierarchy.cypher"
View Source
const ObservationTestData = "../../testDataSetup/neo4j/instance.cypher"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CypherTemplate ¶
type CypherTemplate struct {
Instance string
}
CypherTemplate allows cypher queries to be updated with new ID
type Datastore ¶
type Datastore struct {
// contains filtered or unexported fields
}
Datastore used to setup data within neo4j
func NewDatastore ¶
NewDatastore creates a new datastore for a test
func (*Datastore) CleanUpInstance ¶
CleanUpInstance removes the instance node for the given instance ID
func (*Datastore) CreateCPIHCodeList ¶
func (*Datastore) CreateGenericHierarchy ¶
CreateGenericHierarchy the neo4j database
func (*Datastore) CreateInstanceNode ¶
CreateInstanceNode creates a new instance node for the given instance ID
func (*Datastore) GetInstanceProperties ¶
GetInstanceProperties returns a map of properties that are stored on the instance node
func (*Datastore) TeardownHierarchy ¶
TeardownHierarchy removes all hierarchy nodes within neo4j
func (*Datastore) TeardownInstance ¶
TeardownInstance removes all instance nodes within neo4j
Click to show internal directories.
Click to hide internal directories.