create_test_edge

Function create_test_edge 

Source
pub fn create_test_edge(from: Uuid, to: Uuid, label: Option<&str>) -> Edge
Expand description

Create a test edge connecting two nodes

ยงExample

use oxify_model::test_utils::create_test_edge;
use uuid::Uuid;

let from = Uuid::new_v4();
let to = Uuid::new_v4();
let edge = create_test_edge(from, to, Some("success"));
assert_eq!(edge.from, from);
assert_eq!(edge.to, to);