pub use trusty_common::symgraph::contracts::EdgeKind;
pub use trusty_common::symgraph::{fact_hash_str, EntityType, RawEntity};
pub mod tables {
pub use trusty_common::symgraph::contracts::tables::*;
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn entity_type_round_trips() {
let kinds = [
EntityType::NamedType,
EntityType::ModulePath,
EntityType::TestRelation,
EntityType::ConceptCluster,
];
for k in kinds {
let s = serde_json::to_string(&k).unwrap();
let back: EntityType = serde_json::from_str(&s).unwrap();
assert_eq!(k, back);
}
}
}