()
| 387 | |
| 388 | #[test] |
| 389 | fn test_builder_chaining() { |
| 390 | let a = Axis::new() |
| 391 | .show_axis(true) |
| 392 | .show_grid(false) |
| 393 | .show_line(true) |
| 394 | .value_range(1.0, 50.0) |
| 395 | .tick_labels(vec!["x", "y", "z"]); |
| 396 | assert_eq!(a.show_axis, Some(true)); |
| 397 | assert_eq!(a.show_grid, Some(false)); |
| 398 | assert_eq!(a.show_line, Some(true)); |
| 399 | assert_eq!(a.value_range.unwrap().len(), 2); |
| 400 | assert_eq!(a.tick_labels.unwrap().len(), 3); |
| 401 | } |
| 402 | } |
| 403 | |
| 404 | /// Enumeration representing the position of the axis. |
nothing calls this directly
no test coverage detected