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

Function test_recorded_take_contents

atomic-core/src/record/builder.rs:907–915  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

905
906 #[test]
907 fn test_recorded_take_contents() {
908 let mut builder = RecordBuilder::new();
909 builder.append_contents(b"hello world");
910
911 let recorded = builder.finish();
912 let contents = recorded.take_contents();
913
914 assert_eq!(contents, b"hello world");
915 }
916
917 #[test]
918 fn test_recorded_take_updatables() {

Callers

nothing calls this directly

Calls 3

take_contentsMethod · 0.80
append_contentsMethod · 0.45
finishMethod · 0.45

Tested by

no test coverage detected