salsa/tests/gc/main.rs

20 lines
503 B
Rust
Raw Normal View History

2019-01-23 11:21:54 +00:00
macro_rules! assert_keys {
($db:expr, $($query:expr => ($($key:expr),*),)*) => {
$(
let entries = $db.query($query).entries::<Vec<_>>();
let mut keys = entries.into_iter().map(|e| e.key).collect::<Vec<_>>();
keys.sort();
assert_eq!(keys, vec![$($key),*], "query {:?} had wrong keys", $query);
)*
};
}
2018-10-24 08:38:38 +00:00
mod db;
mod derived_tests;
mod discard_values;
2018-10-24 08:38:38 +00:00
mod group;
2019-03-22 09:13:07 +00:00
mod interned;
mod log;
2018-10-24 08:38:38 +00:00
mod shallow_constant_tests;
2019-03-22 20:24:37 +00:00
mod volatile_tests;