MCPcopy Create free account
hub / github.com/PowerShell/DSC / validate_config

Function validate_config

archive/registry/src/regconfighelper.rs:214–220  ·  view source on GitHub ↗
(config: &Registry)

Source from the content-addressed store, hash-verified

212}
213
214pub fn validate_config(config: &Registry) -> Result<(), RegistryError>{
215 if config.value_data.is_some() && config.value_name.is_none() {
216 return Err(RegistryError::Input("value_name is required when value_data is specified.".to_string()));
217 }
218
219 Ok(())
220}
221
222pub fn config_test(config: &Registry) -> Result<String, RegistryError> {
223 if config.value_name.is_none() {

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected