MCPcopy Create free account
hub / github.com/apache/datafusion / validate_options

Method validate_options

benchmarks/src/benchmark_runner/suite.rs:240–254  ·  view source on GitHub ↗

Validates suite-defined option declarations.

(&self)

Source from the content-addressed store, hash-verified

238
239 /// Validates suite-defined option declarations.
240 fn validate_options(&self) -> Result<()> {
241 let mut option_names = HashSet::new();
242 for option in &self.options {
243 if !option_names.insert(option.name.as_str()) {
244 return Err(DataFusionError::Configuration(format!(
245 "duplicate option name '{}'",
246 option.name
247 )));
248 }
249
250 option.validate()?;
251 }
252
253 Ok(())
254 }
255}
256
257impl SuiteOption {

Callers 1

validateMethod · 0.80

Calls 4

newFunction · 0.85
insertMethod · 0.45
as_strMethod · 0.45
validateMethod · 0.45

Tested by

no test coverage detected