Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
testing::internal::edit_distance Namespace Reference

Enumerations

enum  EditType { kMatch, kAdd, kRemove, kReplace }
 

Functions

GTEST_API_ std::vector< EditTypeCalculateOptimalEdits (const std::vector< size_t > &left, const std::vector< size_t > &right)
 
GTEST_API_ std::vector< EditTypeCalculateOptimalEdits (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)
 

Enumeration Type Documentation

Enumerator:
kMatch 
kAdd 
kRemove 
kReplace 

Definition at line 180 of file gtest-internal.h.

View newest version in sPHENIX GitHub at line 180 of file gtest-internal.h

Function Documentation

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.

View newest version in sPHENIX GitHub at line 1028 of file gtest.cc

References kAdd, kMatch, kRemove, kReplace, and testing::internal::move().

Referenced by CalculateOptimalEdits(), and CreateUnifiedDiff().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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.

View newest version in sPHENIX GitHub at line 1104 of file gtest.cc

References CalculateOptimalEdits(), and i.

+ Here is the call graph for this function:

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.

View newest version in sPHENIX GitHub at line 1203 of file gtest.cc

References CalculateOptimalEdits(), i, it, kAdd, kMatch, kRemove, kReplace, and Acts::UnitConstants::min.

Referenced by testing::internal::EqFailure().

+ Here is the call graph for this function:

+ Here is the caller graph for this function: