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

Method context

atomic-repository/src/diff_engine.rs:455–462  ·  view source on GitHub ↗

Create a context (unchanged) line.

(content: impl Into<String>, old_num: usize, new_num: usize)

Source from the content-addressed store, hash-verified

453impl HunkLine {
454 /// Create a context (unchanged) line.
455 pub fn context(content: impl Into<String>, old_num: usize, new_num: usize) -> Self {
456 Self {
457 status: LineStatus::Unchanged,
458 content: content.into(),
459 old_line_num: Some(old_num),
460 new_line_num: Some(new_num),
461 }
462 }
463
464 /// Create an added line.
465 pub fn added(content: impl Into<String>, new_num: usize) -> Self {

Callers 7

runFunction · 0.45
mainFunction · 0.45
parseMethod · 0.45
render_probeFunction · 0.45
parseMethod · 0.45
prepare_fixturesFunction · 0.45
verifyFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected