Added test for Core/Range class.
authorRaphael Isemann <teemperor@gmail.com>
Mon, 13 Aug 2018 20:43:06 +0000 (20:43 +0000)
committerRaphael Isemann <teemperor@gmail.com>
Mon, 13 Aug 2018 20:43:06 +0000 (20:43 +0000)
commit1ede18fb4dd1c6d73b37d1a9bc5796cbd5e0ca6c
treef68078f21760c60da486ae2e8ec44b10233b6181
parent4c4750771f66396180905bbdb7644c43e6c1eb31
Added test for Core/Range class.

Summary:
We can optimize and refactor some of the classes in RangeMap.h, but first
we should have some tests for all the data structures in there. This adds a first
batch of tests for the Range class itself.

There are some unexpected results happening when mixing invalid and valid ranges, so
I added some FIXME's for that in the tests.

Reviewers: vsk

Reviewed By: vsk

Subscribers: mgorny, lldb-commits

Differential Revision: https://reviews.llvm.org/D50620

llvm-svn: 339611
lldb/unittests/Core/CMakeLists.txt
lldb/unittests/Core/RangeTest.cpp [new file with mode: 0644]