MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_buffered_read

Function test_buffered_read

crates/vm/src/stdlib/_io.rs:5268–5276  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5266
5267 #[test]
5268 fn test_buffered_read() {
5269 let data = vec![1, 2, 3, 4];
5270 let bytes = None;
5271 let mut buffered = BufferedIO {
5272 cursor: Cursor::new(data.clone()),
5273 };
5274
5275 assert_eq!(buffered.read(bytes).unwrap(), data);
5276 }
5277
5278 #[test]
5279 fn test_buffered_seek() {

Callers

nothing calls this directly

Calls 2

newFunction · 0.85
cloneMethod · 0.45

Tested by

no test coverage detected