#![allow(dead_code)] extern crate rust2uml; struct Amut { b: *mut B, } struct Aconst { b: *const B, } struct B { } #[test] fn test_aggregation() { assert_eq!( String::from_utf8(rust2uml::rs2dot("tests/aggregation.rs").unwrap()).unwrap(), r#"digraph ml { ndAmut[label="{<<<Structure>>>\nAmut|- b: *mut B}"][shape="record"]; ndAconst[label="{<<<Structure>>>\nAconst|- b: *const B}"][shape="record"]; ndB[label="{<<<Structure>>>\nB}"][shape="record"]; ndB -> ndAmut[label=""][arrowhead="odiamond"]; ndB -> ndAconst[label=""][arrowhead="odiamond"]; } "#); }