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

Function test_credit_range_single

atomic-core/src/change/credit.rs:1024–1031  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1022
1023 #[test]
1024 fn test_credit_range_single() {
1025 let credit = Credit::human("alice", None::<String>, test_hash(), test_timestamp());
1026 let range = CreditRange::single(42, credit);
1027
1028 assert_eq!(range.start_line, 42);
1029 assert_eq!(range.end_line, 42);
1030 assert_eq!(range.line_count(), 1);
1031 }
1032
1033 #[test]
1034 fn test_credit_range_contains() {

Callers

nothing calls this directly

Calls 3

humanFunction · 0.85
test_timestampFunction · 0.85
test_hashFunction · 0.70

Tested by

no test coverage detected