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

Function options_box_works

src/text.rs:314–330  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

312
313 #[test]
314 fn options_box_works() {
315 let mut text = Text::new();
316 text.set_bbox(true)
317 .set_bbox_facecolor("pink")
318 .set_bbox_edgecolor("black")
319 .set_bbox_alpha(0.3)
320 .set_bbox_style("round,pad=0.4");
321 assert_eq!(text.bbox, true);
322 let opt = text.options_bbox();
323 assert_eq!(
324 opt,
325 "facecolor='pink',\
326 edgecolor='black',\
327 alpha=0.3,\
328 boxstyle='round,pad=0.4',"
329 );
330 }
331
332 #[test]
333 fn draw_works() {

Callers

nothing calls this directly

Calls 6

set_bbox_styleMethod · 0.80
set_bbox_alphaMethod · 0.80
set_bbox_edgecolorMethod · 0.80
set_bbox_facecolorMethod · 0.80
set_bboxMethod · 0.80
options_bboxMethod · 0.80

Tested by

no test coverage detected