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

Function test_view_state_initial

atomic-core/src/apply/change.rs:496–504  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

494
495 #[test]
496 fn test_view_state_initial() {
497 let view = ViewState::new(1, "main".to_string());
498
499 assert_eq!(view.id, 1);
500 assert_eq!(view.name, "main");
501 assert_eq!(view.state, Merkle::ZERO);
502 assert_eq!(view.change_count, 0);
503 assert!(view.is_empty());
504 }
505
506 #[test]
507 fn test_view_state_simulate_apply() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected