iceberg-cpp
Loading...
Searching...
No Matches
Protected Member Functions | List of all members
iceberg::MinimalUpdateTestBase Class Reference

Test fixture for table update operations on minimal table metadata. More...

#include <update_test_base.h>

Inheritance diagram for iceberg::MinimalUpdateTestBase:
iceberg::UpdateTestBase iceberg::SnapshotManagerMinimalTableTest

Protected Member Functions

std::string MetadataResource () const override
 
std::string TableName () const override
 
- Protected Member Functions inherited from iceberg::UpdateTestBase
void SetUp () override
 
void InitializeFileIO ()
 Initialize file IO and create necessary directories.
 
void RegisterTableFromResource (const std::string &resource_name)
 Register a table from a metadata resource file.
 
std::shared_ptr< TableMetadataReloadMetadata ()
 Reload the table from catalog and return its metadata.
 
void ExpectRef (const std::string &name, SnapshotRefType type, int64_t snapshot_id)
 Assert that a ref exists with the given type and snapshot id.
 
void ExpectBranch (const std::string &name, int64_t snapshot_id)
 
void ExpectTag (const std::string &name, int64_t snapshot_id)
 
void ExpectNoRef (const std::string &name)
 Assert that a ref does not exist.
 
void ExpectCurrentSnapshot (int64_t snapshot_id)
 Assert the current snapshot id after reloading.
 
template<typename T >
void ExpectCommitOk (const T &result)
 Assert that a commit succeeded.
 
template<typename T >
void ExpectCommitError (const T &result, ErrorKind kind, const std::string &message)
 Assert that a commit failed with the given error kind and message substring.
 

Additional Inherited Members

- Protected Attributes inherited from iceberg::UpdateTestBase
TableIdentifier table_ident_
 
std::string table_location_
 
std::shared_ptr< FileIOfile_io_
 
std::shared_ptr< InMemoryCatalogcatalog_
 
std::shared_ptr< Tabletable_
 

Detailed Description

Test fixture for table update operations on minimal table metadata.

Member Function Documentation

◆ MetadataResource()

std::string iceberg::MinimalUpdateTestBase::MetadataResource ( ) const
inlineoverrideprotectedvirtual

Reimplemented from iceberg::UpdateTestBase.

◆ TableName()

std::string iceberg::MinimalUpdateTestBase::TableName ( ) const
inlineoverrideprotectedvirtual

Reimplemented from iceberg::UpdateTestBase.


The documentation for this class was generated from the following file: