2
0
mirror of https://github.com/boostorg/mysql.git synced 2026-02-18 14:12:32 +00:00
Files
mysql/test/unit/detail/protocol/query_messages.cpp
ruben 26c57e92dd Split serialization tests into multiple files
Converted string_fixed into a plain array
2020-03-21 19:01:51 +00:00

21 lines
471 B
C++

#include "serialization_test_common.hpp"
#include "boost/mysql/detail/protocol/query_messages.hpp"
using namespace boost::mysql::test;
using namespace boost::mysql::detail;
namespace
{
INSTANTIATE_TEST_SUITE_P(ComQuery, SerializeTest, testing::Values(
serialization_testcase(com_query_packet{
string_eof("show databases")
}, {
0x03, 0x73, 0x68, 0x6f, 0x77, 0x20, 0x64, 0x61,
0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73
}, "regular")
), test_name_generator);
}