in fixtures/coverall/src/lib.rs [311:354]
fn create_some_dict() -> SimpleDict {
SimpleDict {
text: "text".to_string(),
maybe_text: Some("maybe_text".to_string()),
some_bytes: b"some_bytes".to_vec(),
maybe_some_bytes: Some(b"maybe_some_bytes".to_vec()),
a_bool: true,
maybe_a_bool: Some(false),
unsigned8: 1,
maybe_unsigned8: Some(2),
unsigned16: 3,
maybe_unsigned16: Some(4),
unsigned64: u64::MAX,
maybe_unsigned64: Some(u64::MIN),
signed8: 8,
maybe_signed8: Some(0),
signed64: i64::MAX,
maybe_signed64: Some(0),
float32: 1.2345,
maybe_float32: Some(22.0 / 7.0),
float64: 0.0,
maybe_float64: Some(1.0),
coveralls: Some(Arc::new(Coveralls::new("some_dict".to_string()))),
coveralls_list: vec![
Some(Arc::new(Coveralls::new("some_dict_1".to_string()))),
None,
Some(Arc::new(Coveralls::new("some_dict_2".to_string()))),
],
coveralls_map: [
(
"some_dict_3".to_string(),
Some(Arc::new(Coveralls::new("some_dict_3".to_string()))),
),
("none".to_string(), None),
(
"some_dict_4".to_string(),
Some(Arc::new(Coveralls::new("some_dict_4".to_string()))),
),
]
.into_iter()
.collect(),
test_trait: Some(Arc::new(traits::Node::default())),
}
}