#include #include #include TEST_CASE("[Network] sf::Http") { SECTION("Type traits") { STATIC_CHECK(!std::is_copy_constructible_v); STATIC_CHECK(!std::is_copy_assignable_v); STATIC_CHECK(!std::is_nothrow_move_constructible_v); STATIC_CHECK(!std::is_nothrow_move_assignable_v); } SECTION("Request") { SECTION("Type traits") { STATIC_CHECK(std::is_copy_constructible_v); STATIC_CHECK(std::is_copy_assignable_v); STATIC_CHECK(std::is_move_constructible_v); STATIC_CHECK(std::is_nothrow_move_assignable_v); } } SECTION("Response") { SECTION("Type traits") { STATIC_CHECK(std::is_copy_constructible_v); STATIC_CHECK(std::is_copy_assignable_v); STATIC_CHECK(std::is_move_constructible_v); STATIC_CHECK(std::is_nothrow_move_assignable_v); } SECTION("Construction") { const sf::Http::Response response; CHECK(response.getField("").empty()); CHECK(response.getStatus() == sf::Http::Response::Status::ConnectionFailed); CHECK(response.getMajorHttpVersion() == 0); CHECK(response.getMinorHttpVersion() == 0); CHECK(response.getBody().empty()); } } }