MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / assert_content

Method assert_content

atomic-cli/tests/it/git_shim_workspace_test.rs:87–96  ·  view source on GitHub ↗
(&self, view: &str, path: &str, expected: &[u8])

Source from the content-addressed store, hash-verified

85 }
86
87 fn assert_content(&self, view: &str, path: &str, expected: &[u8]) {
88 // Reopen and render from canonical data, independently of the Git worktree.
89 let repo = atomic_repository::Repository::open(self.root.path()).unwrap();
90 assert_eq!(
91 repo.get_file_content_on_view(path, view)
92 .unwrap()
93 .as_deref(),
94 Some(expected)
95 );
96 }
97}
98
99fn preinit_record(native: bool) {

Calls 3

openFunction · 0.85
unwrapMethod · 0.45
pathMethod · 0.45

Tested by

no test coverage detected