MCPcopy Create free account
hub / github.com/ChainSafe/Delorean-Protocol / path

Function path

fendermint/testing/src/golden.rs:11–16  ·  view source on GitHub ↗

Path to a golden file.

(prefix: &str, name: &str, ext: &str)

Source from the content-addressed store, hash-verified

9
10/// Path to a golden file.
11fn path(prefix: &str, name: &str, ext: &str) -> String {
12 // All files will have the same name but different extension.
13 // They should be under `fendermint/vm/message/golden`.
14 let path = Path::new("golden").join(prefix).join(name);
15 format!("{}.{}", path.display(), ext)
16}
17
18/// Read the contents of an existing golden file, or create it by turning `fallback` into string first.
19fn read_or_create<T>(

Callers 1

read_or_createFunction · 0.85

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected