(self, spec: &str, src: &str)
| 61 | } |
| 62 | |
| 63 | pub fn with_code(self, spec: &str, src: &str) -> Self { |
| 64 | self.state.borrow_mut().modules.insert( |
| 65 | spec.to_string(), |
| 66 | Resolved::Code { src: src.to_string(), canonical: spec.to_string() }, |
| 67 | ); |
| 68 | self |
| 69 | } |
| 70 | |
| 71 | /* Bytes the parser will hash for `spec` when verifying `#sha256-...`. */ |
| 72 | pub fn with_bytes(self, spec: &str, bytes: Vec<u8>) -> Self { |
no test coverage detected