mirror of
https://github.com/salsa-rs/salsa.git
synced 2024-12-25 05:29:43 +00:00
17 lines
469 B
Rust
17 lines
469 B
Rust
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);
|
|
)*
|
|
};
|
|
}
|
|
|
|
mod db;
|
|
mod derived_tests;
|
|
mod discard_values;
|
|
mod group;
|
|
mod log;
|
|
mod shallow_constant_tests;
|