MCPcopy Create free account
hub / github.com/elftausend/graplot / test_basic_bar

Function test_basic_bar

tests/bar.rs:4–10  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2
3#[test]
4fn test_basic_bar() {
5 let mut bar = Bar::new([("Ferris", RED), ("Stefan", GREEN), ("Test", BLUE)], &[100., 200., 500.,]);
6 bar.add(("Added", ORANGE), 400.);
7 bar.set_title("title");
8 bar.set_ylabel("test");
9 bar.show();
10}
11#[test]
12fn test_neg_basic_bar() {
13 let mut bar = Bar::new([("Ferris", RED), ("Stefan", GREEN), ("Test", BLUE)], &[100., 200., 500.,]);

Callers

nothing calls this directly

Calls 4

addMethod · 0.45
set_titleMethod · 0.45
set_ylabelMethod · 0.45
showMethod · 0.45

Tested by

no test coverage detected