Function test_index

Source
pub fn test_index<T>(graph: &mut T)
where T: Graph<Vertex = Vertex, Edge = Edge> + SupportsVertexFullTextIndex,
Expand description

Tests that a vertex can be added to the graph and that the indexed field search returns the added vertex.

This function creates a vertex, adds it to the graph, and then verifies that a search for the indexed field of the added vertex returns the expected result.