Skip to main content

validate_benchmark_exists

Function validate_benchmark_exists 

Source
pub fn validate_benchmark_exists(
    crate_dir: &Path,
    crate_name: &str,
    function_name: &str,
) -> bool
Available on crate feature full only.
Expand description

Validates that a benchmark function exists in the crate source

§Arguments

  • crate_dir - Path to the crate directory containing Cargo.toml
  • crate_name - Name of the crate (used as prefix for the function names)
  • function_name - The function name to validate (with or without crate prefix)

§Returns

true if the function is found, false otherwise