Introduce metadata into the pipeline (#397)

This commit is contained in:
JT
2021-12-02 18:59:10 +13:00
committed by GitHub
parent 56307553ae
commit 45eba8b922
28 changed files with 329 additions and 199 deletions

View File

@ -78,10 +78,13 @@ fn bool(
let mut rng = thread_rng();
let bool_result: bool = rng.gen_bool(probability);
Ok(PipelineData::Value(Value::Bool {
val: bool_result,
span,
}))
Ok(PipelineData::Value(
Value::Bool {
val: bool_result,
span,
},
None,
))
}
#[cfg(test)]

View File

@ -70,10 +70,13 @@ fn chars(
.map(char::from)
.collect::<String>();
Ok(PipelineData::Value(Value::String {
val: random_string,
span,
}))
Ok(PipelineData::Value(
Value::String {
val: random_string,
span,
},
None,
))
}
#[cfg(test)]