Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/atomicdotdev/atomic
/ split_lines
Function
split_lines
atomic-core/src/diff/split.rs:280–282 ·
view source on GitHub ↗
(content: &[u8])
Source
from the content-addressed store, hash-verified
278
/// ```
279
#[allow(dead_code)]
280
pub(crate) fn split_lines(content: &[u8]) -> Vec<Line<'_>> {
281
Line::from_bytes(content)
282
}
283
284
#[cfg(test)]
285
mod tests {
Callers
8
analyze
Method · 0.85
test_line_analyzer_split_lines_empty
Function · 0.85
test_line_analyzer_split_lines_single
Function · 0.85
test_line_analyzer_split_lines_multiple
Function · 0.85
test_line_analyzer_split_lines_trailing_newline
Function · 0.85
test_split_lines
Function · 0.85
test_split_lines_empty
Function · 0.85
test_last_line_marked
Function · 0.85
Calls
no outgoing calls
Tested by
7
test_line_analyzer_split_lines_empty
Function · 0.68
test_line_analyzer_split_lines_single
Function · 0.68
test_line_analyzer_split_lines_multiple
Function · 0.68
test_line_analyzer_split_lines_trailing_newline
Function · 0.68
test_split_lines
Function · 0.68
test_split_lines_empty
Function · 0.68
test_last_line_marked
Function · 0.68