MCPcopy Create free account
hub / github.com/cpmech/plotpy / save_str_works

Function save_str_works

src/plot.rs:1274–1283  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1272
1273 #[test]
1274 fn save_str_works() {
1275 let plot = Plot::new();
1276 assert_eq!(plot.buffer.len(), 0);
1277 let path = "/tmp/plotpy/unit_tests/save_str_works.svg";
1278 plot.save(&path).unwrap();
1279 let file = File::open(&path).map_err(|_| "cannot open file").unwrap();
1280 let buffered = BufReader::new(file);
1281 let lines_iter = buffered.lines();
1282 assert!(lines_iter.count() > 20);
1283 }
1284
1285 #[test]
1286 fn show_errors_works() {

Callers

nothing calls this directly

Calls 1

saveMethod · 0.80

Tested by

no test coverage detected