|
| MockDataConnection () |
|
| MOCK_METHOD (Options, options,(),(override)) |
|
| MOCK_METHOD (Status, Apply,(std::string const &table_name, bigtable::SingleRowMutation mut),(override)) |
|
| MOCK_METHOD (future< Status >, AsyncApply,(std::string const &table_name, bigtable::SingleRowMutation mut),(override)) |
|
| MOCK_METHOD (std::vector< bigtable::FailedMutation >, BulkApply,(std::string const &table_name, bigtable::BulkMutation mut),(override)) |
|
| MOCK_METHOD (future< std::vector< bigtable::FailedMutation > >, AsyncBulkApply,(std::string const &table_name, bigtable::BulkMutation mut),(override)) |
|
| MOCK_METHOD (bigtable::RowReader, ReadRows,(std::string const &table_name, bigtable::RowSet row_set, std::int64_t rows_limit, bigtable::Filter filter),(override)) |
| Prefer to use ReadRowsFull() . More...
|
|
| MOCK_METHOD (bigtable::RowReader, ReadRowsFull,(bigtable::ReadRowsParams),(override)) |
|
| MOCK_METHOD ((StatusOr< std::pair< bool, bigtable::Row > >), ReadRow,(std::string const &table_name, std::string row_key, bigtable::Filter filter),(override)) |
|
| MOCK_METHOD (StatusOr< bigtable::MutationBranch >, CheckAndMutateRow,(std::string const &table_name, std::string row_key, bigtable::Filter filter, std::vector< bigtable::Mutation > true_mutations, std::vector< bigtable::Mutation > false_mutations),(override)) |
|
| MOCK_METHOD (future< StatusOr< bigtable::MutationBranch > >, AsyncCheckAndMutateRow,(std::string const &table_name, std::string row_key, bigtable::Filter filter, std::vector< bigtable::Mutation > true_mutations, std::vector< bigtable::Mutation > false_mutations),(override)) |
|
| MOCK_METHOD (StatusOr< std::vector< bigtable::RowKeySample > >, SampleRows,(std::string const &table_name),(override)) |
|
| MOCK_METHOD (future< StatusOr< std::vector< bigtable::RowKeySample > > >, AsyncSampleRows,(std::string const &table_name),(override)) |
|
| MOCK_METHOD (StatusOr< bigtable::Row >, ReadModifyWriteRow,(google::bigtable::v2::ReadModifyWriteRowRequest request),(override)) |
|
| MOCK_METHOD (future< StatusOr< bigtable::Row > >, AsyncReadModifyWriteRow,(google::bigtable::v2::ReadModifyWriteRowRequest request),(override)) |
|
| MOCK_METHOD (void, AsyncReadRows,(std::string const &table_name, std::function< future< bool >(bigtable::Row)> on_row, std::function< void(Status)> on_finish, bigtable::RowSet row_set, std::int64_t rows_limit, bigtable::Filter filter),(override)) |
|
| MOCK_METHOD ((future< StatusOr< std::pair< bool, bigtable::Row > > >), AsyncReadRow,(std::string const &table_name, std::string row_key, bigtable::Filter filter),(override)) |
|
virtual Options | options () |
|
virtual Status | Apply (std::string const &table_name, SingleRowMutation mut) |
|
virtual future< Status > | AsyncApply (std::string const &table_name, SingleRowMutation mut) |
|
virtual std::vector< FailedMutation > | BulkApply (std::string const &table_name, BulkMutation mut) |
|
virtual future< std::vector< FailedMutation > > | AsyncBulkApply (std::string const &table_name, BulkMutation mut) |
|
virtual RowReader | ReadRows (std::string const &table_name, RowSet row_set, std::int64_t rows_limit, Filter filter) |
| Prefer to use ReadRowsFull() in mocks. More...
|
|
virtual RowReader | ReadRowsFull (ReadRowsParams params) |
|
virtual StatusOr< std::pair< bool, Row > > | ReadRow (std::string const &table_name, std::string row_key, Filter filter) |
|
virtual StatusOr< MutationBranch > | CheckAndMutateRow (std::string const &table_name, std::string row_key, Filter filter, std::vector< Mutation > true_mutations, std::vector< Mutation > false_mutations) |
|
virtual future< StatusOr< MutationBranch > > | AsyncCheckAndMutateRow (std::string const &table_name, std::string row_key, Filter filter, std::vector< Mutation > true_mutations, std::vector< Mutation > false_mutations) |
|
virtual StatusOr< std::vector< RowKeySample > > | SampleRows (std::string const &table_name) |
|
virtual future< StatusOr< std::vector< RowKeySample > > > | AsyncSampleRows (std::string const &table_name) |
|
virtual StatusOr< Row > | ReadModifyWriteRow (google::bigtable::v2::ReadModifyWriteRowRequest request) |
|
virtual future< StatusOr< Row > > | AsyncReadModifyWriteRow (google::bigtable::v2::ReadModifyWriteRowRequest request) |
|
virtual void | AsyncReadRows (std::string const &table_name, std::function< future< bool >(Row)> on_row, std::function< void(Status)> on_finish, RowSet row_set, std::int64_t rows_limit, Filter filter) |
|
virtual future< StatusOr< std::pair< bool, Row > > > | AsyncReadRow (std::string const &table_name, std::string row_key, Filter filter) |
|
A class to mock google::cloud::bigtable::DataConnection
.
Application developers may want to test their code with simulated responses, including errors from a bigtable::Table
. To do so, construct a bigtable::Table
with an instance of this class. Then use the Google Test framework functions to program the behavior of this mock.
See Mocking the Cloud Bigtable C++ Client with Google Mock for a complete example that mocks Table
calls.