This is an archive of the discontinued LLVM Phabricator instance.

[clang-tidy][NFC] Improve naming convention in google-readability-avoid-underscore-in-googletest-name
ClosedPublic

Authored by carlosgalvezp on Mar 23 2023, 5:19 AM.

Details

Summary

According to the Google docs, the convention is
TEST(TestSuiteName, TestName). Apply that convention to the
source code, test and documentation of the check.

Diff Detail

Event Timeline

carlosgalvezp created this revision.Mar 23 2023, 5:19 AM
Herald added a project: Restricted Project. · View Herald Transcript
carlosgalvezp requested review of this revision.Mar 23 2023, 5:19 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 23 2023, 5:19 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
Eugene.Zelenko accepted this revision.Mar 23 2023, 7:02 AM

But will be good idea to give a chance to other reviewers to take a look.

This revision is now accepted and ready to land.Mar 23 2023, 7:02 AM
PiotrZSL accepted this revision.Mar 23 2023, 8:23 AM
PiotrZSL added inline comments.
clang-tools-extra/test/clang-tidy/checkers/google/avoid-underscore-in-googletest-name.cpp
10

Be consistent and change all those TestCaseName into TestSuiteName.

Fix missing naming convention in the test.

carlosgalvezp marked an inline comment as done.Mar 23 2023, 9:35 AM
carlosgalvezp added inline comments.
clang-tools-extra/test/clang-tidy/checkers/google/avoid-underscore-in-googletest-name.cpp
10

Thanks, I missed these. Fixed!

PiotrZSL accepted this revision.Mar 23 2023, 3:01 PM