1 2 3 4 5 6 7 8
#![cfg(feature = "js")] #[test] fn print_graph() { let js = "import { exec } from 'child_process'; exec(process.env.TEST);"; let graph = pyrograph::parse::parse_js(js, "t.js").unwrap(); println!("{:#?}", graph); }