MCPcopy Create free account
hub / github.com/apache/paimon-rust / test_empty_commit_is_noop

Function test_empty_commit_is_noop

crates/paimon/src/table/table_commit.rs:1286–1297  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1284
1285 #[tokio::test]
1286 async fn test_empty_commit_is_noop() {
1287 let file_io = test_file_io();
1288 let table_path = "memory:/test_empty_commit";
1289 setup_dirs(&file_io, table_path).await;
1290
1291 let commit = setup_commit(&file_io, table_path);
1292 commit.commit(vec![]).await.unwrap();
1293
1294 let snap_manager = SnapshotManager::new(file_io.clone(), table_path.to_string());
1295 let snapshot = snap_manager.get_latest_snapshot().await.unwrap();
1296 assert!(snapshot.is_none());
1297 }
1298
1299 #[tokio::test]
1300 async fn test_truncate_table() {

Callers

nothing calls this directly

Calls 5

setup_commitFunction · 0.85
get_latest_snapshotMethod · 0.80
test_file_ioFunction · 0.70
setup_dirsFunction · 0.70
commitMethod · 0.45

Tested by

no test coverage detected