Moved query operand tests to lib lest.
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 1s
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 1s
This commit is contained in:
@@ -41,12 +41,18 @@ impl TestDocument {
|
||||
self.field_names[position].clone()
|
||||
}
|
||||
|
||||
pub fn populate<F>(&self, mtt: &mut MoreThanText, data: Vec<F>) where F: Into<Field> + Clone {
|
||||
pub fn populate<F>(&self, mtt: &mut MoreThanText, data: Vec<F>)
|
||||
where
|
||||
F: Into<Field> + Clone,
|
||||
{
|
||||
let wrapper = vec![data];
|
||||
self.populate_multiple(mtt, wrapper);
|
||||
}
|
||||
|
||||
pub fn populate_multiple<F>(&self, mtt: &mut MoreThanText, data: Vec<Vec<F>>) where F: Into<Field> + Clone {
|
||||
pub fn populate_multiple<F>(&self, mtt: &mut MoreThanText, data: Vec<Vec<F>>)
|
||||
where
|
||||
F: Into<Field> + Clone,
|
||||
{
|
||||
for rec in data.iter() {
|
||||
let mut add = Addition::new(self.doc_name.clone());
|
||||
for i in 0..self.field_names.len() {
|
||||
|
||||
Reference in New Issue
Block a user