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

Function view_state

atomic-repository/tests/it/remote_cache_parity_test.rs:340–342  ·  view source on GitHub ↗

The fence a change recorded against `view` is submitted with: its effective state, which moves with an ancestor as well as with the view.

(repo: &Repository, view: &str)

Source from the content-addressed store, hash-verified

338/// The fence a change recorded against `view` is submitted with: its
339/// effective state, which moves with an ancestor as well as with the view.
340fn view_state(repo: &Repository, view: &str) -> String {
341 atomic_core::types::Base32::to_base32(&repo.sandbox_effective_state(view).unwrap())
342}
343
344/// Record in the cache (hydrated as FileStates would) and return the change.
345fn record_in_cache(

Calls 2

unwrapMethod · 0.45

Tested by

no test coverage detected