proxygen
|
Enumerations | |
enum | EditType { kMatch, kAdd, kRemove, kReplace, kMatch, kAdd, kRemove, kReplace, kMatch, kAdd, kRemove, kReplace } |
enum | EditType { kMatch, kAdd, kRemove, kReplace, kMatch, kAdd, kRemove, kReplace, kMatch, kAdd, kRemove, kReplace } |
enum | EditType { kMatch, kAdd, kRemove, kReplace, kMatch, kAdd, kRemove, kReplace, kMatch, kAdd, kRemove, kReplace } |
Functions | |
GTEST_API_ std::vector< EditType > | CalculateOptimalEdits (const std::vector< size_t > &left, const std::vector< size_t > &right) |
GTEST_API_ std::vector< EditType > | CalculateOptimalEdits (const std::vector< std::string > &left, const std::vector< std::string > &right) |
GTEST_API_ std::string | CreateUnifiedDiff (const std::vector< std::string > &left, const std::vector< std::string > &right, size_t context=2) |
Enumerator | |
---|---|
kMatch | |
kAdd | |
kRemove | |
kReplace | |
kMatch | |
kAdd | |
kRemove | |
kReplace | |
kMatch | |
kAdd | |
kRemove | |
kReplace |
Definition at line 180 of file gtest-internal.h.
Enumerator | |
---|---|
kMatch | |
kAdd | |
kRemove | |
kReplace | |
kMatch | |
kAdd | |
kRemove | |
kReplace | |
kMatch | |
kAdd | |
kRemove | |
kReplace |
Definition at line 180 of file gtest-internal.h.
Enumerator | |
---|---|
kMatch | |
kAdd | |
kRemove | |
kReplace | |
kMatch | |
kAdd | |
kRemove | |
kReplace | |
kMatch | |
kAdd | |
kRemove | |
kReplace |
Definition at line 180 of file gtest-internal.h.
std::vector< EditType > testing::internal::edit_distance::CalculateOptimalEdits | ( | const std::vector< size_t > & | left, |
const std::vector< size_t > & | right | ||
) |
Definition at line 1028 of file gtest.cc.
References add, ids_, kAdd, kMatch, kRemove, kReplace, folly::gen::move, replace(), and string.
Referenced by CalculateOptimalEdits(), CreateUnifiedDiff(), testing::internal::ShouldRunTestCase(), and testing::internal::UnitTestRecordPropertyTestHelper::UnitTestRecordProperty().
std::vector< EditType > testing::internal::edit_distance::CalculateOptimalEdits | ( | const std::vector< std::string > & | left, |
const std::vector< std::string > & | right | ||
) |
Definition at line 1104 of file gtest.cc.
References adds_, CalculateOptimalEdits(), common_, hunk_, hunk_adds_, hunk_removes_, i, left_start_, bm::list, testing::internal::PrintTo(), removes_, and right_start_.
std::string testing::internal::edit_distance::CreateUnifiedDiff | ( | const std::vector< std::string > & | left, |
const std::vector< std::string > & | right, | ||
size_t | context = 2 |
||
) |
Definition at line 1203 of file gtest.cc.
References CalculateOptimalEdits(), folly::test::end(), i, kAdd, kMatch, kRemove, kReplace, folly::gen::lines(), min, start, and string.
Referenced by testing::internal::EqFailure(), and testing::internal::UnitTestRecordPropertyTestHelper::UnitTestRecordProperty().