Skip to content

Commit

Permalink
Add test for multipart file size
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephane Gouache committed Jul 2, 2024
1 parent cf0ca44 commit 376e6c2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/basic_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,13 @@ TEST(GCSDriverTest, GetFileSize)
ASSERT_EQ(driver_disconnect(), kSuccess);
}

TEST(GCSDriverTest, GetMultipartFileSize)
{
ASSERT_EQ(driver_connect(), kSuccess);
ASSERT_EQ(driver_getFileSize("gs://data-test-khiops-driver-gcs/khiops_data/bq_export/Adult/Adult-split-00000000000*.txt"), 5585568);
ASSERT_EQ(driver_disconnect(), kSuccess);
}

TEST(GCSDriverTest, GetSystemPreferredBufferSize)
{
ASSERT_EQ(driver_getSystemPreferredBufferSize(), 4 * 1024 * 1024);
Expand Down

0 comments on commit 376e6c2

Please sign in to comment.