[Lldb-commits] [PATCH] D70775: [lldb] Add MockTypeSystem and some basic unit test for CompilerType
Raphael Isemann via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Wed Nov 27 02:13:33 PST 2019
teemperor created this revision.
teemperor added a reviewer: labath.
Herald added subscribers: lldb-commits, JDevlieghere, mgorny.
Herald added a project: LLDB.
There are a lot of classes using TypeSystem in some way (mostly indirectly
through CompilerType) and we can't really unittest this code at the moment without
having some kind of mock TypeSystem.
This adds a MockTypeSystem to the TestingSupport that provides a stub implementation
for all the deleted functions. Also adds a very basic CompilerTest that just uses the MockTypeSystem
as a simple TypeSystem placeholder.
Repository:
rLLDB LLDB
https://reviews.llvm.org/D70775
Files:
lldb/unittests/Symbol/CMakeLists.txt
lldb/unittests/Symbol/CompilerTypeTest.cpp
lldb/unittests/TestingSupport/CMakeLists.txt
lldb/unittests/TestingSupport/MockTypeSystem.cpp
lldb/unittests/TestingSupport/MockTypeSystem.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D70775.231202.patch
Type: text/x-patch
Size: 17607 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20191127/b9a7acd6/attachment-0001.bin>
More information about the lldb-commits
mailing list