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

Function test_scatter_to_json_has_layout

crates/plotlars-plotly/src/ext.rs:179–184  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

177
178 #[test]
179 fn test_scatter_to_json_has_layout() {
180 let df = df!["x" => [1.0, 2.0, 3.0], "y" => [4.0, 5.0, 6.0]].unwrap();
181 let plot = ScatterPlot::builder().data(&df).x("x").y("y").build();
182 let json = to_json_value(&plot);
183 assert!(json["layout"].is_object());
184 }
185
186 #[test]
187 fn test_scatter_to_json_with_title() {

Callers

nothing calls this directly

Calls 3

to_json_valueFunction · 0.85
yMethod · 0.45
xMethod · 0.45

Tested by

no test coverage detected