Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/endbasic/endbasic
/ test_split_off
Function
test_split_off
std/src/console/linebuffer.rs:249–254 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
247
248
#[test]
249
fn test_split_off() {
250
let mut buffer = LineBuffer::from(
"Hello, World"
);
251
let world = buffer.split_off(7);
252
assert_eq!(buffer.into_inner(),
"Hello, "
);
253
assert_eq!(world.into_inner(),
"World"
);
254
}
255
}
Callers
nothing calls this directly
Calls
1
split_off
Method · 0.80
Tested by
no test coverage detected