(
value: serde_yaml::Value,
context: &str,
)
| 762 | } |
| 763 | |
| 764 | fn parse_worker_yaml_value( |
| 765 | value: serde_yaml::Value, |
| 766 | context: &str, |
| 767 | ) -> anyhow::Result<WorkerAgentSpec> { |
| 768 | let spec: WorkerAgentSpec = serde_yaml::from_value(value) |
| 769 | .map_err(|e| anyhow::anyhow!("Failed to parse worker {}: {}", context, e))?; |
| 770 | validate_agent_name(&spec.name)?; |
| 771 | Ok(spec) |
| 772 | } |
| 773 | |
| 774 | fn yaml_value_has_key(value: &serde_yaml::Value, key: &str) -> bool { |
| 775 | value |
no test coverage detected