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

Function test_writer_inner_mut

atomic-core/src/output/traits.rs:1160–1167  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1158
1159 #[test]
1160 fn test_writer_inner_mut() {
1161 let buf: Vec<u8> = Vec::new();
1162 let mut writer = Writer::new(buf);
1163
1164 writer.inner_mut().push(42);
1165
1166 assert_eq!(writer.inner()[0], 42);
1167 }
1168
1169 // -------------------------------------------------------------------------
1170 // Marker Constants Tests

Callers

nothing calls this directly

Calls 2

pushMethod · 0.45
inner_mutMethod · 0.45

Tested by

no test coverage detected