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

Function test_push_change_new

atomic-cli/tests/it/push_integration_test.rs:162–172  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

160
161#[test]
162fn test_push_change_new() {
163 let hash = Hash::of(b"test");
164 let state = Merkle::ZERO;
165 let change = PushChange::new(hash, 42, state);
166
167 assert_eq!(change.hash, hash);
168 assert_eq!(change.sequence, 42);
169 assert_eq!(change.state, state);
170 assert!(!change.tagged);
171 assert!(change.message.is_none());
172}
173
174#[test]
175fn test_push_change_with_tagged() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected