2022-07-25 14:36:05 +08:00
|
|
|
#include <SFML/Network/SocketSelector.hpp>
|
|
|
|
|
2023-08-27 14:26:00 +08:00
|
|
|
// Other 1st party headers
|
|
|
|
#include <SFML/Network/UdpSocket.hpp>
|
|
|
|
|
|
|
|
#include <catch2/catch_test_macros.hpp>
|
|
|
|
|
2022-07-25 14:36:05 +08:00
|
|
|
#include <type_traits>
|
|
|
|
|
2023-08-27 14:26:00 +08:00
|
|
|
TEST_CASE("[Network] sf::SocketSelector")
|
|
|
|
{
|
|
|
|
SECTION("Type traits")
|
|
|
|
{
|
|
|
|
STATIC_CHECK(std::is_copy_constructible_v<sf::SocketSelector>);
|
|
|
|
STATIC_CHECK(std::is_copy_assignable_v<sf::SocketSelector>);
|
|
|
|
STATIC_CHECK(std::is_nothrow_move_constructible_v<sf::SocketSelector>);
|
|
|
|
STATIC_CHECK(std::is_nothrow_move_assignable_v<sf::SocketSelector>);
|
|
|
|
}
|
|
|
|
|
|
|
|
sf::UdpSocket socket;
|
|
|
|
|
|
|
|
SECTION("Construction")
|
|
|
|
{
|
|
|
|
const sf::SocketSelector socketSelector;
|
|
|
|
CHECK(!socketSelector.isReady(socket));
|
|
|
|
}
|
|
|
|
}
|