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

Function test_with_group

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

Source from the content-addressed store, hash-verified

615
616 #[test]
617 fn test_with_group() {
618 let df = df![
619 "labels" => ["a", "b", "a", "b"],
620 "values" => [1.0, 2.0, 3.0, 4.0],
621 "g" => ["x", "x", "y", "y"]
622 ]
623 .unwrap();
624 let plot = BoxPlot::builder()
625 .data(&df)
626 .labels("labels")
627 .values("values")
628 .group("g")
629 .build();
630 assert_eq!(plot.ir_traces().len(), 2);
631 }
632
633 #[test]
634 fn test_resolve_color_singular_priority() {

Callers

nothing calls this directly

Calls 1

valuesMethod · 0.80

Tested by

no test coverage detected