[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-14 UTC."],[[["\u003cp\u003eThe latest release candidate version is 2.37.0-rc, and the content provides access to documentation for versions ranging from 2.11.0 up to this version.\u003c/p\u003e\n"],["\u003cp\u003eThe content focuses on the \u003ccode\u003egoogle::cloud::bigtable_mocks\u003c/code\u003e namespace, offering documentation for mocking Bigtable interactions.\u003c/p\u003e\n"],["\u003cp\u003eA \u003ccode\u003eMockDataConnection\u003c/code\u003e class is provided to simulate \u003ccode\u003egoogle::cloud::bigtable::DataConnection\u003c/code\u003e within testing contexts.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMakeRowReader\u003c/code\u003e function facilitates the creation of a \u003ccode\u003eRowReader\u003c/code\u003e with a predefined set of rows and a customizable final status, specifically designed for testing the \u003ccode\u003eTable::ReadRows(...)\u003c/code\u003e functionality.\u003c/p\u003e\n"]]],[],null,["# Namespace google::cloud::bigtable_mocks (2.19.0)\n\nVersion 2.19.0keyboard_arrow_down\n\n- [2.42.0-rc (latest)](/cpp/docs/reference/bigtable/latest/namespacegoogle_1_1cloud_1_1bigtable__mocks)\n- [2.41.0](/cpp/docs/reference/bigtable/2.41.0/namespacegoogle_1_1cloud_1_1bigtable__mocks)\n- [2.40.0](/cpp/docs/reference/bigtable/2.40.0/namespacegoogle_1_1cloud_1_1bigtable__mocks)\n- [2.39.0](/cpp/docs/reference/bigtable/2.39.0/namespacegoogle_1_1cloud_1_1bigtable__mocks)\n- [2.38.0](/cpp/docs/reference/bigtable/2.38.0/namespacegoogle_1_1cloud_1_1bigtable__mocks)\n- [2.37.0](/cpp/docs/reference/bigtable/2.37.0/namespacegoogle_1_1cloud_1_1bigtable__mocks)\n- [2.36.0](/cpp/docs/reference/bigtable/2.36.0/namespacegoogle_1_1cloud_1_1bigtable__mocks)\n- [2.35.0](/cpp/docs/reference/bigtable/2.35.0/namespacegoogle_1_1cloud_1_1bigtable__mocks)\n- [2.34.0](/cpp/docs/reference/bigtable/2.34.0/namespacegoogle_1_1cloud_1_1bigtable__mocks)\n- [2.33.0](/cpp/docs/reference/bigtable/2.33.0/namespacegoogle_1_1cloud_1_1bigtable__mocks)\n- [2.32.0](/cpp/docs/reference/bigtable/2.32.0/namespacegoogle_1_1cloud_1_1bigtable__mocks)\n- [2.31.0](/cpp/docs/reference/bigtable/2.31.0/namespacegoogle_1_1cloud_1_1bigtable__mocks)\n- [2.30.0](/cpp/docs/reference/bigtable/2.30.0/namespacegoogle_1_1cloud_1_1bigtable__mocks)\n- [2.29.0](/cpp/docs/reference/bigtable/2.29.0/namespacegoogle_1_1cloud_1_1bigtable__mocks)\n- [2.28.0](/cpp/docs/reference/bigtable/2.28.0/namespacegoogle_1_1cloud_1_1bigtable__mocks)\n- [2.27.0](/cpp/docs/reference/bigtable/2.27.0/namespacegoogle_1_1cloud_1_1bigtable__mocks)\n- [2.26.0](/cpp/docs/reference/bigtable/2.26.0/namespacegoogle_1_1cloud_1_1bigtable__mocks)\n- [2.25.1](/cpp/docs/reference/bigtable/2.25.1/namespacegoogle_1_1cloud_1_1bigtable__mocks)\n- [2.24.0](/cpp/docs/reference/bigtable/2.24.0/namespacegoogle_1_1cloud_1_1bigtable__mocks)\n- [2.23.0](/cpp/docs/reference/bigtable/2.23.0/namespacegoogle_1_1cloud_1_1bigtable__mocks)\n- [2.22.1](/cpp/docs/reference/bigtable/2.22.1/namespacegoogle_1_1cloud_1_1bigtable__mocks)\n- [2.21.0](/cpp/docs/reference/bigtable/2.21.0/namespacegoogle_1_1cloud_1_1bigtable__mocks)\n- [2.20.0](/cpp/docs/reference/bigtable/2.20.0/namespacegoogle_1_1cloud_1_1bigtable__mocks)\n- [2.19.0](/cpp/docs/reference/bigtable/2.19.0/namespacegoogle_1_1cloud_1_1bigtable__mocks)\n- [2.18.0](/cpp/docs/reference/bigtable/2.18.0/namespacegoogle_1_1cloud_1_1bigtable__mocks)\n- [2.17.0](/cpp/docs/reference/bigtable/2.17.0/namespacegoogle_1_1cloud_1_1bigtable__mocks)\n- [2.16.0](/cpp/docs/reference/bigtable/2.16.0/namespacegoogle_1_1cloud_1_1bigtable__mocks)\n- [2.15.1](/cpp/docs/reference/bigtable/2.15.1/namespacegoogle_1_1cloud_1_1bigtable__mocks)\n- [2.14.0](/cpp/docs/reference/bigtable/2.14.0/namespacegoogle_1_1cloud_1_1bigtable__mocks)\n- [2.13.0](/cpp/docs/reference/bigtable/2.13.0/namespacegoogle_1_1cloud_1_1bigtable__mocks)\n- [2.12.0](/cpp/docs/reference/bigtable/2.12.0/namespacegoogle_1_1cloud_1_1bigtable__mocks)\n- [2.11.0](/cpp/docs/reference/bigtable/2.11.0/namespacegoogle_1_1cloud_1_1bigtable__mocks) \n\nClasses\n-------\n\n### [MockDataConnection](/cpp/docs/reference/bigtable/2.19.0/classgoogle_1_1cloud_1_1bigtable__mocks_1_1MockDataConnection)\n\nA class to mock [`google::cloud::bigtable::DataConnection`](/cpp/docs/reference/bigtable/2.19.0/classgoogle_1_1cloud_1_1bigtable_1_1DataConnection).\n\nFunctions\n---------\n\n### MakeRowReader(std::vector\\\u003c bigtable::Row \\\u003e, Status)\n\nReturns a `RowReader` with a fixed output stream. \nThis factory function is offered for customers to mock the output of `Table::ReadRows(...)` in their tests.\n**Note:** If `Cancel()` is called on the `RowReader`, the stream will terminate and return `final_status`. \n\n TEST(ReadRowsTest, Success) {\n using ::google::cloud::StatusOr;\n using cbt = ::google::cloud::bigtable;\n using cbtm = ::google::cloud::bigtable_mocks;\n\n std::vector\u003ccbt::Row\u003e rows = {cbt::Row(\"r1\", {}), cbt::Row(\"r2\", {})};\n\n auto mock = std::shared_ptr\u003ccbtm::MockDataConnection\u003e();\n EXPECT_CALL(*mock, ReadRowsFull)\n .WillOnce(Return(cbtm::MakeRowReader(rows)));\n\n auto table = cbt::Table(mock);\n auto reader = table.ReadRows(...);\n\n // Verify your code works when reading rows: {\"r1\", \"r2\"}\n }"]]