Skip to content

Commit

Permalink
make lint happy
Browse files Browse the repository at this point in the history
Signed-off-by: Junduo Dong <[email protected]>
  • Loading branch information
An-DJ committed Jan 21, 2025
1 parent 63c2a95 commit f56c1e7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
6 changes: 4 additions & 2 deletions cpp/fury/util/logging.cc
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,10 @@ std::string GetCallTrace() {
}

std::unordered_map<FuryLogLevel, std::string> log_level_to_str = {
{FuryLogLevel::FURY_DEBUG, "DEBUG"}, {FuryLogLevel::FURY_INFO, "INFO"},
{FuryLogLevel::FURY_WARNING, "WARNING"}, {FuryLogLevel::FURY_ERROR, "ERROR"},
{FuryLogLevel::FURY_DEBUG, "DEBUG"},
{FuryLogLevel::FURY_INFO, "INFO"},
{FuryLogLevel::FURY_WARNING, "WARNING"},
{FuryLogLevel::FURY_ERROR, "ERROR"},
{FuryLogLevel::FURY_FATAL, "FATAL"},
};

Expand Down
13 changes: 8 additions & 5 deletions cpp/fury/util/string_util_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,8 @@ TEST(UTF16ToUTF8Test, PerformanceTest) {
auto duration = std::chrono::duration_cast<std::chrono::nanoseconds>(
end_time - start_time)
.count();
FURY_LOG(FURY_INFO) << "Standard library Running Time: " << duration << " ns";
FURY_LOG(FURY_INFO) << "Standard library Running Time: " << duration
<< " ns";
} catch (const std::exception &e) {
FURY_LOG(FURY_FATAL) << "Caught exception: " << e.what();
}
Expand Down Expand Up @@ -523,10 +524,11 @@ TEST(UTF8ToUTF16Test, PerformanceTest) {
auto duration = std::chrono::duration_cast<std::chrono::nanoseconds>(
end_time - start_time)
.count();
FURY_LOG(FURY_INFO) << "Standard Library Running Time: " << duration << " ns";
FURY_LOG(FURY_INFO) << "Standard Library Running Time: " << duration
<< " ns";
} catch (const std::exception &e) {
FURY_LOG(FURY_FATAL) << "Caught exception in standard library conversion: "
<< e.what();
<< e.what();
}

// BaseLine
Expand All @@ -541,7 +543,8 @@ TEST(UTF8ToUTF16Test, PerformanceTest) {
.count();
FURY_LOG(FURY_INFO) << "BaseLine Running Time: " << duration << " ns";
} catch (const std::exception &e) {
FURY_LOG(FURY_FATAL) << "Caught exception in baseline conversion: " << e.what();
FURY_LOG(FURY_FATAL) << "Caught exception in baseline conversion: "
<< e.what();
}

// Optimized (SIMD)
Expand All @@ -557,7 +560,7 @@ TEST(UTF8ToUTF16Test, PerformanceTest) {
FURY_LOG(FURY_INFO) << "SIMD Optimized Running Time: " << duration << " ns";
} catch (const std::exception &e) {
FURY_LOG(FURY_FATAL) << "Caught exception in SIMD optimized conversion: "
<< e.what();
<< e.what();
}
}

Expand Down

0 comments on commit f56c1e7

Please sign in to comment.