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)
commitff966308e1964c0780cc7a1dc05b644a729124bc
tree60e1f1f3fbc8a57bd9ee6596bd7d6ed2fab9c78e
parent3d4b2188af8bbc0db7c4860e52363ec3fcd3fd70
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228084 91177308-0d34-0410-b5e6-96231b3b80d8
unittests/CMakeLists.txt
unittests/Makefile
unittests/ProfileData/CMakeLists.txt [new file with mode: 0644]
unittests/ProfileData/CoverageMappingTest.cpp [new file with mode: 0644]
unittests/ProfileData/Makefile [new file with mode: 0644]