Test just the UUID-parsing portion of the user branch (no server needed).
(id: &str)
| 446 | |
| 447 | /// Test just the UUID-parsing portion of the user branch (no server needed). |
| 448 | fn resolve_user_uuid_only(id: &str) -> CliResult<uuid::Uuid> { |
| 449 | uuid::Uuid::parse_str(id).map_err(|_| CliError::InvalidArgument { |
| 450 | message: format!("'{}' is not a valid UUID.", id), |
| 451 | }) |
| 452 | } |
| 453 | |
| 454 | /// Extract the error message from resolve_subject's pure branches (those |
| 455 | /// that don't touch the network). The team branch needs a client, so we |
no outgoing calls