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

Function test_writer_inner_mut

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

Source from the content-addressed store, hash-verified

1179
1180 #[test]
1181 fn test_writer_inner_mut() {
1182 let buf: Vec<u8> = Vec::new();
1183 let mut writer = Writer::new(buf);
1184
1185 writer.inner_mut().push(42);
1186
1187 assert_eq!(writer.inner()[0], 42);
1188 }
1189
1190 // -------------------------------------------------------------------------
1191 // Marker Constants Tests

Callers

nothing calls this directly

Calls 2

pushMethod · 0.45
inner_mutMethod · 0.45

Tested by

no test coverage detected