MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / sample_file

Function sample_file

tests/storage_suite/db_query_test.rs:75–84  ·  view source on GitHub ↗
(path: &str)

Source from the content-addressed store, hash-verified

73}
74
75fn sample_file(path: &str) -> FileRecord {
76 FileRecord {
77 path: path.to_string(),
78 content_hash: format!("hash_{path}"),
79 size: 1024,
80 modified_at: 1000,
81 indexed_at: 2000,
82 node_count: 3,
83 }
84}
85
86async fn assert_can_start_new_transaction(db: &Database) {
87 db.conn()

Calls

no outgoing calls

Tested by

no test coverage detected