MCPcopy Create free account
hub / github.com/dylan-sutton-chavez/edge-python / with_code

Method with_code

compiler/tests/common.rs:63–69  ·  view source on GitHub ↗
(self, spec: &str, src: &str)

Source from the content-addressed store, hash-verified

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 {

Callers 1

build_resolverFunction · 0.80

Calls 1

insertMethod · 0.80

Tested by

no test coverage detected