Skip to main content

check_name

Function check_name 

Source
pub fn check_name(what: &str, name: &str) -> Result<()>
Expand description

Reject a name that will be recorded — benchmark, subject or tool, runner class — if it holds a control character.

Reports are read line by line: tak’s own workflows decide a check by what a line starts with, and a name holding a newline could put a forged verdict such as **Nothing was compared at the start of one. tak.toml, --bench and TAK_TOOL all come from the change under test, so this is checked where a name enters, before anything is measured. Nothing legitimate needs a control character in a name. Report rendering escapes them as well, for notes that older tak versions wrote before this check existed.