Moved TestData out of ServerTest.searchResults

Now that ServerTest.searchResults is in a separate cpp file, there are
no reasons for hiding its test data definition inside the unit test
function.

The diff is much-much simpler if whitespace changes are ignored.
This commit is contained in:
Veloman Yunkan 2022-06-04 20:42:41 +04:00 committed by Matthieu Gautier
parent 1c98b00128
commit ddd639eaa1
1 changed files with 147 additions and 147 deletions

View File

@ -583,10 +583,8 @@ bool isSubSnippet(std::string subSnippet, const std::string& superSnippet)
#define RAYCHARLESZIMID "6f1d19d0-633f-087b-fb55-7ac324ff9baf"
#define EXAMPLEZIMID "5dc0b3af-5df2-0925-f0ca-d2bf75e78af6"
TEST_F(ServerTest, searchResults)
struct TestData
{
struct TestData
{
struct PaginationEntry
{
std::string label;
@ -765,8 +763,10 @@ TEST_F(ServerTest, searchResults)
EXPECT_EQ(actual, expected) << testContext;
}
}
};
};
TEST_F(ServerTest, searchResults)
{
const TestData testData[] = {
{
/* query */ "pattern=velomanyunkan&books.id=" RAYCHARLESZIMID,