FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
SFML/test/Network/Http.test.cpp at master · criptych/SFML · GitHub
criptych
/
SFML
Public
forked from
SFML/SFML
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
SFML
/
test
/
Network
/
Http.test.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
48 lines (42 loc) · 1.58 KB
Breadcrumbs
SFML
/
test
/
Network
/
Http.test.cpp
Copy path
File metadata and controls
48 lines (42 loc) · 1.58 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#
include
<
SFML/Network/Http.hpp
>
#
include
<
catch2/catch_test_macros.hpp
>
#
include
<
type_traits
>
TEST_CASE
(
"
[Network] sf::Http
"
)
{
SECTION
(
"
Type traits
"
)
{
STATIC_CHECK
(!std::is_copy_constructible_v<sf::Http>);
STATIC_CHECK
(!std::is_copy_assignable_v<sf::Http>);
STATIC_CHECK
(!std::is_nothrow_move_constructible_v<sf::Http>);
STATIC_CHECK
(!std::is_nothrow_move_assignable_v<sf::Http>);
}
SECTION
(
"
Request
"
)
{
SECTION
(
"
Type traits
"
)
{
STATIC_CHECK
(std::is_copy_constructible_v<sf::Http::Request>);
STATIC_CHECK
(std::is_copy_assignable_v<sf::Http::Request>);
STATIC_CHECK
(std::is_move_constructible_v<sf::Http::Request>);
STATIC_CHECK
(std::is_nothrow_move_assignable_v<sf::Http::Request>);
}
}
SECTION
(
"
Response
"
)
{
SECTION
(
"
Type traits
"
)
{
STATIC_CHECK
(std::is_copy_constructible_v<sf::Http::Response>);
STATIC_CHECK
(std::is_copy_assignable_v<sf::Http::Response>);
STATIC_CHECK
(std::is_move_constructible_v<sf::Http::Response>);
STATIC_CHECK
(std::is_nothrow_move_assignable_v<sf::Http::Response>);
}
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
());
}
}
}
Back
|
FazBrowse Home
|
New Git URL