This is an archive of the discontinued LLVM Phabricator instance.

[clang-rename] Introduce an unittest skeleton for clang-rename.
ClosedPublic

Authored by hokein on Mar 10 2017, 1:54 AM.

Event Timeline

hokein created this revision.Mar 10 2017, 1:54 AM
hokein updated this revision to Diff 91296.Mar 10 2017, 1:56 AM

Add missing license.

ioeric accepted this revision.Mar 10 2017, 2:05 AM

lg

unittests/clang-rename/ClangRenameTests.cpp
92

I'd put EXPECT_EQ in test cases so that it would be easier to see which case fails. Maybe pull out a function for wrapping Expected and EXPECT_EQ on the formatted result and format(Actual)?

This revision is now accepted and ready to land.Mar 10 2017, 2:05 AM
hokein marked an inline comment as done.Mar 10 2017, 2:41 AM
hokein added inline comments.
unittests/clang-rename/ClangRenameTests.cpp
92

I don't see a strong benefit of it. As our test cases are generated by INSTANTIATE_TEST_CASE_P, pulling out this function doesn't make the failure output much clearer; this will also save us some keystrokes. I'd keep it at the moment.

This revision was automatically updated to reflect the committed changes.
hokein marked an inline comment as done.