Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[easylog][ut]add ut for easylog severity #442

Merged
merged 1 commit into from
Sep 4, 2023
Merged

Conversation

qicosmos
Copy link
Collaborator

@qicosmos qicosmos commented Sep 4, 2023

Why

add ut for severity;

about #441

What is changing

Example

  CHECK(easylog::severity_str(easylog::Severity::WARN) ==
        easylog::severity_str(easylog::Severity::WARNING));
  CHECK(easylog::severity_str(easylog::Severity::CRITICAL) ==
        easylog::severity_str(easylog::Severity::FATAL));

@siriuslzx
Copy link
Contributor

Why

add ut for severity;

about #441

What is changing

Example

  CHECK(easylog::severity_str(easylog::Severity::WARN) ==
        easylog::severity_str(easylog::Severity::WARNING));
  CHECK(easylog::severity_str(easylog::Severity::CRITICAL) ==
        easylog::severity_str(easylog::Severity::FATAL));

请问怎么测试 ANSI escape code,即测试WARN和WARNING的终端颜色一致。FATAL运行一次程序就退出了,又该怎么测试?

@qicosmos
Copy link
Collaborator Author

qicosmos commented Sep 4, 2023

fatal 会退出,测warning 就行了。

@qicosmos qicosmos merged commit d16f0d6 into alibaba:main Sep 4, 2023
28 checks passed
@qicosmos qicosmos deleted the add_ut branch September 4, 2023 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants