@@ -48,7 +48,7 @@ TEST_F(SnapshotTest, ConstructionAndFieldAccess) {
4848 .parent_snapshot_id = 54321 ,
4949 .sequence_number = 1 ,
5050 .timestamp_ms = 1615569200000 ,
51- .manifest_list = ManifestList ( " s3://example/manifest_list.avro" ) ,
51+ .manifest_list = " s3://example/manifest_list.avro" ,
5252 .summary = summary1,
5353 .schema_id = 10 };
5454
@@ -57,8 +57,7 @@ TEST_F(SnapshotTest, ConstructionAndFieldAccess) {
5757 EXPECT_EQ (*snapshot.parent_snapshot_id , 54321 );
5858 EXPECT_EQ (snapshot.sequence_number , 1 );
5959 EXPECT_EQ (snapshot.timestamp_ms , 1615569200000 );
60- EXPECT_EQ (snapshot.ManifestList ()->get ().manifest_list_path ,
61- " s3://example/manifest_list.avro" );
60+ EXPECT_EQ (snapshot.manifest_list , " s3://example/manifest_list.avro" );
6261 EXPECT_EQ (snapshot.operation ().value (), DataOperation::kAppend );
6362 EXPECT_EQ (snapshot.summary .at (std::string (SnapshotSummaryFields::kAddedDataFiles )),
6463 " 101" );
@@ -70,14 +69,14 @@ TEST_F(SnapshotTest, ConstructionAndFieldAccess) {
7069
7170TEST_F (SnapshotTest, EqualityComparison) {
7271 // Test the == and != operators
73- Snapshot snapshot1 (12345 , {}, 1 , 1615569200000 ,
74- ManifestList ( " s3://example/manifest_list.avro " ), summary1, {});
72+ Snapshot snapshot1 (12345 , {}, 1 , 1615569200000 , " s3://example/manifest_list.avro " ,
73+ summary1, {});
7574
76- Snapshot snapshot2 (12345 , {}, 1 , 1615569200000 ,
77- ManifestList ( " s3://example/manifest_list.avro " ), summary2, {});
75+ Snapshot snapshot2 (12345 , {}, 1 , 1615569200000 , " s3://example/manifest_list.avro " ,
76+ summary2, {});
7877
79- Snapshot snapshot3 (67890 , {}, 1 , 1615569200000 ,
80- ManifestList ( " s3://example/manifest_list.avro " ), summary3, {});
78+ Snapshot snapshot3 (67890 , {}, 1 , 1615569200000 , " s3://example/manifest_list.avro " ,
79+ summary3, {});
8180
8281 EXPECT_EQ (snapshot1, snapshot2);
8382 EXPECT_NE (snapshot1, snapshot3);
0 commit comments