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,8 +583,6 @@ 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 PaginationEntry
@ -767,6 +765,8 @@ TEST_F(ServerTest, searchResults)
}
};
TEST_F(ServerTest, searchResults)
{
const TestData testData[] = {
{
/* query */ "pattern=velomanyunkan&books.id=" RAYCHARLESZIMID,