MCPcopy Create free account
hub / github.com/MegEngine/MegFlow / test_cyclic

Function test_cyclic

flow-rs/src/config/parser.rs:141–158  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

139 #[test]
140 #[should_panic]
141 fn test_cyclic() {
142 let temp_dir = tempfile::tempdir().unwrap();
143 let file1_path = temp_dir.path().join("a.toml");
144 let mut file1 = std::fs::File::create(&file1_path).unwrap();
145 write!(
146 file1,
147 "{}",
148 r#"
149include=["./a.toml"]
150a=1
151b="string in a"
152c=[1,2,3]
153d=[4,5,6]
154e={a=1, b=2}"#
155 )
156 .unwrap();
157 let _: Config = Parser::from_file(&file1_path, None).unwrap();
158 }
159
160 #[test]
161 fn test_template() -> Result<()> {

Callers

nothing calls this directly

Calls 1

createFunction · 0.85

Tested by

no test coverage detected