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

Function show_errors_works

src/plot.rs:1286–1293  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1284
1285 #[test]
1286 fn show_errors_works() {
1287 const WRONG: usize = 0;
1288 let mut plot = Plot::new();
1289 plot.set_show_errors(true);
1290 plot.set_subplot(1, 1, WRONG);
1291 let path = Path::new(OUT_DIR).join("show_errors_works.svg");
1292 assert_eq!(plot.save(&path).err(), Some("python3 failed; please see the log file"));
1293 }
1294
1295 #[test]
1296 fn subplot_3d_works() {

Callers

nothing calls this directly

Calls 2

set_show_errorsMethod · 0.80
set_subplotMethod · 0.80

Tested by

no test coverage detected