MCPcopy Create free account
hub / github.com/apache/arrow / TEST_F

Function TEST_F

cpp/src/arrow/flight/sql/odbc/tests/tables_test.cc:83–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81// GH-49702: TODO Disabled on Linux due to BlockingQueue issue
82#ifndef __linux__
83TEST_F(TablesMockTest, SQLTablesTestGetMetadataForAllCatalogs) {
84 SQLWCHAR empty[] = {0};
85 ASSIGN_SQLWCHAR_ARR(SQL_ALL_CATALOGS_W, L"%");
86 std::wstring expected_catalog_name = std::wstring(L"main");
87
88 // Get Catalog metadata
89 ASSERT_EQ(SQL_SUCCESS, SQLTables(this->stmt, SQL_ALL_CATALOGS_W, SQL_NTS, empty,
90 SQL_NTS, empty, SQL_NTS, empty, SQL_NTS));
91
92 ValidateFetch(this->stmt, SQL_SUCCESS);
93
94 CheckStringColumnW(this->stmt, 1, expected_catalog_name);
95 CheckNullColumnW(this->stmt, 2);
96 CheckNullColumnW(this->stmt, 3);
97 CheckNullColumnW(this->stmt, 4);
98 CheckNullColumnW(this->stmt, 5);
99
100 ValidateFetch(this->stmt, SQL_NO_DATA);
101}
102#endif // __linux__
103
104TEST_F(TablesMockTest, SQLTablesTestGetMetadataForNamedCatalog) {

Callers

nothing calls this directly

Calls 9

ValidateFetchFunction · 0.85
CheckStringColumnWFunction · 0.85
CheckNullColumnWFunction · 0.85
GetStringColumnWFunction · 0.85
ConvertToWStringFunction · 0.85
SQLTablesFunction · 0.50
SQLFetchFunction · 0.50
emptyMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected