InstrProf: Add some unit tests for CoverageMapping
authorJustin Bogner <mail@justinbogner.com>
Wed, 4 Feb 2015 00:15:12 +0000 (00:15 +0000)
committerJustin Bogner <mail@justinbogner.com>
Wed, 4 Feb 2015 00:15:12 +0000 (00:15 +0000)
commit0cca70a6e5749200aa3a6f6f6c5613818c4cdeae
tree89ed5884ca64a61fceebb994bea48580de5d9dcc
parent70e0c09e6c0d19d8eba4740d20bf58ae9274bc47
InstrProf: Add some unit tests for CoverageMapping

The llvm-level tests for coverage mapping need a binary input file,
which means they're hard to understand, hard to update, and it's
difficult to add new ones. By adding some unit tests that build up the
coverage data structures in C++, we can write more meaningful and
targeted tests.

llvm-svn: 228084
llvm/unittests/CMakeLists.txt
llvm/unittests/Makefile
llvm/unittests/ProfileData/CMakeLists.txt [new file with mode: 0644]
llvm/unittests/ProfileData/CoverageMappingTest.cpp [new file with mode: 0644]
llvm/unittests/ProfileData/Makefile [new file with mode: 0644]