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

Function test_module_exports

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

Source from the content-addressed store, hash-verified

136
137 #[test]
138 fn test_module_exports() {
139 // Verify all expected types are exported
140 let test_pos =
141 crate::Position::new(crate::Hash::of(b"test"), crate::ChangePosition::new(0));
142
143 let _: Atom<crate::Hash> = Atom::Insertion(Insertion {
144 predecessors: vec![],
145 successors: vec![],
146 flag: crate::EdgeFlags::BLOCK,
147 start: crate::ChangePosition::new(0),
148 end: crate::ChangePosition::new(10),
149 inode: test_pos,
150 });
151
152 let _encoding = Encoding::Utf8;
153
154 let _author = Author::new("Test", None::<String>);
155
156 let _header = ChangeHeader::default();
157 }
158}

Callers

nothing calls this directly

Calls 1

InsertionClass · 0.85

Tested by

no test coverage detected