MCPcopy Create free account
hub / github.com/CodSpeedHQ/codspeed / validate

Method validate

src/project_config/mod.rs:34–41  ·  view source on GitHub ↗

Validate the configuration Checks for invalid combinations of options, particularly in walltime config

(&self)

Source from the content-addressed store, hash-verified

32 ///
33 /// Checks for invalid combinations of options, particularly in walltime config
34 fn validate(&self) -> Result<()> {
35 if let Some(options) = &self.options {
36 if let Some(walltime) = &options.walltime {
37 Self::validate_walltime_options(walltime, "root options")?;
38 }
39 }
40 Ok(())
41 }
42
43 /// Validate walltime options for conflicting constraints
44 fn validate_walltime_options(opts: &WalltimeOptions, context: &str) -> Result<()> {

Calls

no outgoing calls