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

Function test_result_builder_chain

atomic-core/src/output/repo/file.rs:1444–1455  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1442
1443 #[test]
1444 fn test_result_builder_chain() {
1445 let result = FileOutputResult::empty("test.rs", Inode::ROOT)
1446 .with_bytes_written(2048)
1447 .with_vertices_processed(25)
1448 .with_edges_traversed(50)
1449 .with_truncated(false);
1450
1451 assert_eq!(result.bytes_written, 2048);
1452 assert_eq!(result.vertices_processed, 25);
1453 assert_eq!(result.edges_traversed, 50);
1454 assert!(!result.was_truncated);
1455 }
1456
1457 #[test]
1458 fn test_result_clone() {

Callers

nothing calls this directly

Calls 4

with_truncatedMethod · 0.80
with_edges_traversedMethod · 0.80
with_bytes_writtenMethod · 0.80

Tested by

no test coverage detected