MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / write_test_string

Function write_test_string

crates/fs-utils/src/dir_trie.rs:246–249  ·  view source on GitHub ↗

Write the [`TEST_STRING`] into the entry [`TEST_ID`].

(trie: &DirTrie)

Source from the content-addressed store, hash-verified

244
245 /// Write the [`TEST_STRING`] into the entry [`TEST_ID`].
246 fn write_test_string(trie: &DirTrie) {
247 let mut file = trie.open_entry_writer(&TEST_ID).unwrap();
248 file.write_all(TEST_STRING).unwrap();
249 }
250
251 /// Read the entry [`TEST_ID`] and assert that its contents match the [`TEST_STRING`].
252 fn read_test_string(trie: &DirTrie) {

Callers 3

create_retrieveFunction · 0.85
hardlinkFunction · 0.85
open_optionsFunction · 0.85

Calls 2

open_entry_writerMethod · 0.80
unwrapMethod · 0.45

Tested by 3

create_retrieveFunction · 0.68
hardlinkFunction · 0.68
open_optionsFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…