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

Function fixture

atomic-cli/src/commands/change/tree.rs:440–489  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

438 }
439
440 fn fixture() -> Change {
441 Change::new(
442 ChangeHeader::new("Update CLI\nKeep it readable"),
443 vec![
444 GraphOp::DirAdd {
445 path: "src".into(),
446 add_name: insertion(),
447 add_inode: insertion(),
448 },
449 GraphOp::FileAdd {
450 path: "src/new.ts".into(),
451 add_name: insertion(),
452 add_inode: insertion(),
453 contents: None,
454 encoding: None,
455 },
456 GraphOp::FileDel {
457 path: "src/old.ts".into(),
458 del: edges(),
459 contents: None,
460 encoding: None,
461 },
462 GraphOp::Edit {
463 local: Local::new("README.md", 1),
464 change: Atom::Insertion(insertion()),
465 encoding: None,
466 },
467 GraphOp::Edit {
468 local: Local::new("README.md", 2),
469 change: Atom::Insertion(insertion()),
470 encoding: None,
471 },
472 GraphOp::FileMove {
473 path: "src/renamed.ts".into(),
474 del: edges(),
475 add: insertion(),
476 },
477 GraphOp::DirDel {
478 path: "obsolete".into(),
479 del: edges(),
480 },
481 GraphOp::DirUndel {
482 path: "restored".into(),
483 undel: edges(),
484 },
485 ],
486 vec![b'x'],
487 vec![],
488 )
489 }
490
491 fn data() -> ChangeRenderData {
492 ChangeRenderData {

Calls

no outgoing calls