Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
fmt
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
fmt
Commits
b8174bec
Commit
b8174bec
authored
Jul 01, 2014
by
Victor Zverovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use Kill-o-Zap
⚡
parent
39166f9a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
27 deletions
+0
-27
test/util-test.cc
test/util-test.cc
+0
-27
No files found.
test/util-test.cc
View file @
b8174bec
...
...
@@ -171,23 +171,6 @@ TEST(UtilTest, SystemError) {
typedef
void
(
*
FormatErrorMessage
)(
fmt
::
Writer
&
out
,
int
error_code
,
StringRef
message
);
template
<
typename
Sink
>
void
CheckErrorSink
(
int
error_code
,
FormatErrorMessage
format
)
{
fmt
::
SystemError
error
(
0
,
""
);
Sink
sink
(
error_code
);
fmt
::
Writer
w
;
w
<<
"test"
;
try
{
sink
(
w
);
}
catch
(
const
fmt
::
SystemError
&
e
)
{
error
=
e
;
}
fmt
::
Writer
message
;
format
(
message
,
error_code
,
"test"
);
EXPECT_EQ
(
message
.
str
(),
error
.
what
());
EXPECT_EQ
(
error_code
,
error
.
error_code
());
}
template
<
typename
Error
>
void
CheckThrowError
(
int
error_code
,
FormatErrorMessage
format
)
{
fmt
::
SystemError
error
(
0
,
""
);
...
...
@@ -209,11 +192,6 @@ TEST(UtilTest, FormatSystemErrorMessage) {
GetSystemErrorMessage
(
EDOM
)),
message
.
str
());
}
TEST
(
UtilTest
,
SystemErrorSink
)
{
CheckErrorSink
<
fmt
::
SystemErrorSink
>
(
EDOM
,
fmt
::
internal
::
FormatSystemErrorMessage
);
}
TEST
(
UtilTest
,
ThrowSystemError
)
{
CheckThrowError
<
fmt
::
SystemError
>
(
EDOM
,
fmt
::
internal
::
FormatSystemErrorMessage
);
}
...
...
@@ -242,11 +220,6 @@ TEST(UtilTest, FormatWinErrorMessage) {
actual_message
.
str
());
}
TEST
(
UtilTest
,
WinErrorSink
)
{
CheckErrorSink
<
fmt
::
WinErrorSink
>
(
ERROR_FILE_EXISTS
,
fmt
::
internal
::
FormatWinErrorMessage
);
}
TEST
(
UtilTest
,
ThrowWinError
)
{
CheckThrowError
<
fmt
::
WindowsError
>
(
ERROR_FILE_EXISTS
,
fmt
::
internal
::
FormatWinErrorMessage
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment