mml 0.1.41

A library to generating UML language from Rust's project into graphiz/dot file.
#![allow(dead_code, unused_variables)]
extern crate mml;

struct A {
}

impl A {
    fn b(b: &B) {
    }
}

struct B {
}

#[test]
fn test_dependency() {
    assert_eq!(
        String::from_utf8(mml::rs2dot("tests/dependency.rs").unwrap()).unwrap(),
        r#"digraph ml {
    ndA[label="{<<<Structure>>>\nA|- b(b: &B)}"][shape="record"];
    ndB[label="{<<<Structure>>>\nB}"][shape="record"];
    ndB -> ndA[label=""][style="dashed"][arrowhead="vee"];
}
"#);
}