SPlit up
This commit is contained in:
parent
cf39ad754e
commit
f59d01227b
91 changed files with 10370 additions and 7562 deletions
|
|
@ -588,6 +588,29 @@ impl POIData {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
impl POIData {
|
||||
/// Minimal empty instance for integration tests that need an `AppState`
|
||||
/// but never touch POI data.
|
||||
pub(crate) fn empty_for_tests() -> Self {
|
||||
POIData {
|
||||
id_buffer: String::new(),
|
||||
id_offsets: Vec::new(),
|
||||
id_lengths: Vec::new(),
|
||||
group: InternedColumn::build(&[]),
|
||||
category: InternedColumn::build(&[]),
|
||||
icon_category: InternedColumn::build(&[]),
|
||||
name: Vec::new(),
|
||||
lat: Vec::new(),
|
||||
lng: Vec::new(),
|
||||
emoji: InternedColumn::build(&[]),
|
||||
priority: Vec::new(),
|
||||
school_meta_idx: Vec::new(),
|
||||
school_meta: Vec::new(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue