mirror of https://github.com/kiwix/libkiwix.git
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:
parent
1c98b00128
commit
ddd639eaa1
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue