Started moving update tests into lib.

This commit is contained in:
2026-03-01 13:33:03 -05:00
parent 224096cbdb
commit 00d8283fb9
6 changed files with 88 additions and 12 deletions

View File

@@ -1,4 +1,4 @@
use super::{Query, RequestData};
use super::{CalcValue, Query, RequestData};
use crate::{message::MessageAction, name::NameType};
#[derive(Clone, Debug)]
@@ -28,6 +28,14 @@ impl Update {
&mut self.query
}
pub fn add_field<NT, CV>(&mut self, name: NT, field: CV)
where
CV: Into<CalcValue>,
NT: Into<NameType>,
{
self.values.add_field(name, field);
}
pub fn get_values(&self) -> &RequestData {
&self.values
}