mirror of
https://github.com/boostorg/mysql.git
synced 2026-02-14 00:42:53 +00:00
Replaced std::nullptr_t for boost::variant2::monostate in values Added support for relational operators in value Automatic docs generation closes #48 closes #46
28 lines
899 B
C++
28 lines
899 B
C++
//
|
|
// Copyright (c) 2019-2021 Ruben Perez Hidalgo (rubenperez038 at gmail dot com)
|
|
//
|
|
// Distributed under the Boost Software License, Version 1.0. (See accompanying
|
|
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|
//
|
|
|
|
#include "boost/mysql/resultset.hpp"
|
|
#include <boost/asio/strand.hpp>
|
|
#include <boost/test/unit_test.hpp>
|
|
|
|
BOOST_AUTO_TEST_SUITE(test_resultset)
|
|
|
|
BOOST_AUTO_TEST_CASE(rebind_executor)
|
|
{
|
|
using other_executor = boost::asio::strand<boost::asio::io_context::executor_type>;
|
|
using rebound_type = boost::mysql::tcp_resultset::rebind_executor<other_executor>::other;
|
|
using expected_type = boost::mysql::resultset<
|
|
boost::asio::basic_stream_socket<
|
|
boost::asio::ip::tcp,
|
|
other_executor
|
|
>
|
|
>;
|
|
BOOST_TEST((std::is_same<rebound_type, expected_type>::value));
|
|
}
|
|
|
|
BOOST_AUTO_TEST_SUITE_END() // test_resultset
|