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

Function test_module_exports

atomic-core/src/change/mod.rs:153–172  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

151
152 #[test]
153 fn test_module_exports() {
154 // Verify all expected types are exported
155 let test_pos =
156 crate::Position::new(crate::Hash::of(b"test"), crate::ChangePosition::new(0));
157
158 let _: Atom<crate::Hash> = Atom::Insertion(Insertion {
159 predecessors: vec![],
160 successors: vec![],
161 flag: crate::EdgeFlags::BLOCK,
162 start: crate::ChangePosition::new(0),
163 end: crate::ChangePosition::new(10),
164 inode: test_pos,
165 });
166
167 let _encoding = Encoding::Utf8;
168
169 let _author = Author::new("Test", None::<String>);
170
171 let _header = ChangeHeader::default();
172 }
173}

Callers

nothing calls this directly

Calls 1

InsertionClass · 0.85

Tested by

no test coverage detected