[−][src]Macro rubric::data
A macro to easily create a TestData
struct, which is really just an alias to HashMap<String, String>
.
Example
use rubric::{TestData, data}; // The long way let mut map = TestData::new(); map.insert(String::from("key"), String::from("value")); // the macro way let data = data! { "key" => "value" }; assert_eq!(map, data);