(iri: &str)
| 248 | ) |
| 249 | } |
| 250 | pub fn parse_finding(iri: &str) -> Result<(ProjectId, String, Hash), IriError> { |
| 251 | let (project, rest) = parse_qualified(iri, "finding")?; |
| 252 | let (code, hash) = rest.split_once(':').ok_or_else(|| IriError(iri.into()))?; |
| 253 | let hash = strict_base32(hash) |
| 254 | .map(crate::types::Merkle) |
| 255 | .map_err(|_| IriError(iri.into()))?; |
| 256 | Ok((project, decode(code, false)?, hash)) |
| 257 | } |
nothing calls this directly
no test coverage detected