mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-25 10:27:04 +00:00
delete dead code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113075 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -2224,35 +2224,6 @@ int TestInfo::increment_death_test_count() {
|
|||||||
return impl_->result()->increment_death_test_count();
|
return impl_->result()->increment_death_test_count();
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace {
|
|
||||||
|
|
||||||
// A predicate that checks the test name of a TestInfo against a known
|
|
||||||
// value.
|
|
||||||
//
|
|
||||||
// This is used for implementation of the TestCase class only. We put
|
|
||||||
// it in the anonymous namespace to prevent polluting the outer
|
|
||||||
// namespace.
|
|
||||||
//
|
|
||||||
// TestNameIs is copyable.
|
|
||||||
class TestNameIs {
|
|
||||||
public:
|
|
||||||
// Constructor.
|
|
||||||
//
|
|
||||||
// TestNameIs has NO default constructor.
|
|
||||||
explicit TestNameIs(const char* name)
|
|
||||||
: name_(name) {}
|
|
||||||
|
|
||||||
// Returns true iff the test name of test_info matches name_.
|
|
||||||
bool operator()(const TestInfo * test_info) const {
|
|
||||||
return test_info && internal::String(test_info->name()).Compare(name_) == 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
private:
|
|
||||||
internal::String name_;
|
|
||||||
};
|
|
||||||
|
|
||||||
} // namespace
|
|
||||||
|
|
||||||
namespace internal {
|
namespace internal {
|
||||||
|
|
||||||
// This method expands all parameterized tests registered with macros TEST_P
|
// This method expands all parameterized tests registered with macros TEST_P
|
||||||
|
|||||||
Reference in New Issue
Block a user