| 26 | /// targets from codspeed.yaml. |
| 27 | #[derive(Debug, Clone, Serialize, Deserialize)] |
| 28 | pub struct BenchmarkCommand { |
| 29 | /// The command and arguments to execute |
| 30 | pub command: Vec<String>, |
| 31 | |
| 32 | /// Optional benchmark name |
| 33 | #[serde(default, skip_serializing_if = "Option::is_none")] |
| 34 | pub name: Option<String>, |
| 35 | |
| 36 | /// Walltime execution options (flattened into the JSON object) |
| 37 | #[serde(default)] |
| 38 | pub walltime_args: walltime::WalltimeExecutionArgs, |
| 39 | } |
| 40 | |
| 41 | /// Read and parse benchmark commands from stdin as JSON |
| 42 | pub fn read_commands_from_stdin() -> Result<Vec<BenchmarkCommand>> { |
nothing calls this directly
no outgoing calls
no test coverage detected