pub struct TestSupport {
pub env_var_override: Option<Vec<String>>,
pub additional_yaml_paths: Vec<String>,
pub value_type_override: Option<ValueType>,
pub used_by: IndexSet<ConfigurationStruct>,
pub test_json: Option<String>,
pub additional_attributes: IndexMap<String, String>,
}Expand description
Metadata to support config smoke tests.
These fields support logic in the configuration smoke tests and are tightly bound to the behavior of the test logic. They may change if the test methodology changes.
Fields§
§env_var_override: Option<Vec<String>>Environment variable overrides for this key. Checked by configuration smoke tests.
additional_yaml_paths: Vec<String>Alias YAML paths that map to the same config key. Checked by configuration smoke tests.
value_type_override: Option<ValueType>Override the type inferred from the schema.
used_by: IndexSet<ConfigurationStruct>Config structs that consume this key (non-empty) for configuration smoke tests.
test_json: Option<String>Literal JSON value for smoke test injection.
additional_attributes: IndexMap<String, String>TRANSITIONAL BANDAID. Carries metadata needed only to reproduce the hand-written registry (filename partitioning, Saluki-only schema source/default). Delete with it.
Trait Implementations§
Source§impl Clone for TestSupport
impl Clone for TestSupport
Source§fn clone(&self) -> TestSupport
fn clone(&self) -> TestSupport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TestSupport
impl Debug for TestSupport
Source§impl<'de> Deserialize<'de> for TestSupport
impl<'de> Deserialize<'de> for TestSupport
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TestSupport
impl RefUnwindSafe for TestSupport
impl Send for TestSupport
impl Sync for TestSupport
impl Unpin for TestSupport
impl UnsafeUnpin for TestSupport
impl UnwindSafe for TestSupport
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more