Apply clang-format

This commit is contained in:
Victor Zverovich
2019-12-21 13:10:45 -08:00
parent 74532c23a3
commit 8cf4c52068
8 changed files with 45 additions and 41 deletions
+7 -7
View File
@@ -22,7 +22,7 @@ using fmt::error_code;
#ifdef _WIN32
#include <windows.h>
# include <windows.h>
TEST(UtilTest, UTF16ToUTF8) {
std::string s = "ёжик";
@@ -267,7 +267,7 @@ TEST(BufferedFileTest, CloseError) {
TEST(BufferedFileTest, Fileno) {
buffered_file f;
#ifndef __COVERITY__
# ifndef __COVERITY__
// fileno on a null FILE pointer either crashes or returns an error.
// Disable Coverity because this is intentional.
EXPECT_DEATH_IF_SUPPORTED(
@@ -279,7 +279,7 @@ TEST(BufferedFileTest, Fileno) {
}
},
"");
#endif
# endif
f = open_buffered_file();
EXPECT_TRUE(f.fileno() != -1);
file copy = file::dup(f.fileno());
@@ -431,13 +431,13 @@ TEST(FileTest, Dup) {
EXPECT_EQ(FILE_CONTENT, read(copy, std::strlen(FILE_CONTENT)));
}
#ifndef __COVERITY__
# ifndef __COVERITY__
TEST(FileTest, DupError) {
int value = -1;
EXPECT_SYSTEM_ERROR_NOASSERT(file::dup(value), EBADF,
"cannot duplicate file descriptor -1");
}
#endif
# endif
TEST(FileTest, Dup2) {
file f = open_file();
@@ -487,12 +487,12 @@ TEST(FileTest, Fdopen) {
EXPECT_EQ(read_fd, FMT_POSIX(fileno(read_end.fdopen("r").get())));
}
#ifdef FMT_LOCALE
# ifdef FMT_LOCALE
TEST(LocaleTest, Strtod) {
fmt::Locale locale;
const char *start = "4.2", *ptr = start;
EXPECT_EQ(4.2, locale.strtod(ptr));
EXPECT_EQ(start + 3, ptr);
}
#endif
# endif
#endif // FMT_USE_FCNTL