MCPcopy Create free account
hub / github.com/alceal/plotlars / test_basic_one_trace

Function test_basic_one_trace

crates/plotlars-core/src/plots/boxplot.rs:601–614  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

599
600 #[test]
601 fn test_basic_one_trace() {
602 let df = df![
603 "labels" => ["a", "b", "c"],
604 "values" => [1.0, 2.0, 3.0]
605 ]
606 .unwrap();
607 let plot = BoxPlot::builder()
608 .data(&df)
609 .labels("labels")
610 .values("values")
611 .build();
612 assert_eq!(plot.ir_traces().len(), 1);
613 assert!(matches!(plot.ir_traces()[0], TraceIR::BoxPlot(_)));
614 }
615
616 #[test]
617 fn test_with_group() {

Callers

nothing calls this directly

Calls 1

valuesMethod · 0.80

Tested by

no test coverage detected