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

Function test_change_kind_added

atomic-core/src/record/detect.rs:926–938  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

924
925 #[test]
926 fn test_change_kind_added() {
927 let kind = FileChangeKind::Added {
928 encoding: Encoding::Utf8,
929 };
930
931 assert!(kind.is_added());
932 assert!(!kind.is_modified());
933 assert!(!kind.is_deleted());
934 assert!(!kind.is_moved());
935 assert!(!kind.is_metadata_only());
936 assert!(kind.has_content_change());
937 assert!(kind.diff_ops().is_none());
938 }
939
940 #[test]
941 fn test_change_kind_modified() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected