resolve_default_function

Function resolve_default_function 

Source
pub fn resolve_default_function(
    project_root: &Path,
    crate_name: &str,
    crate_dir: Option<&Path>,
) -> String
Available on crate feature full only.
Expand description

Resolves the default benchmark function for a project

This function attempts to auto-detect benchmark functions from the crate’s source. If no benchmarks are found, it falls back to a sensible default based on the crate name.

§Arguments

  • project_root - Root directory of the project
  • crate_name - Name of the benchmark crate
  • crate_dir - Optional explicit crate directory (if None, will search standard locations)

§Returns

The default function name in format crate_name::function_name