KiCad PCB EDA Suite
sexpr_test_utils.h File Reference

Go to the source code of this file.

Classes

struct  BOOST_TEST_PRINT_NAMESPACE_OPEN::print_log_value< SEXPR::SEXPR >
 Boost print helper for SEXPR objects. More...
 

Namespaces

namespace  KI_TEST
 
namespace  BOOST_TEST_PRINT_NAMESPACE_OPEN
 Before Boost 1.64, nullptr_t wasn't handled.
 

Functions

SEXPR::SEXPR_TYPE KI_TEST::getType (const SEXPR::SEXPR &aSexpr)
 Get the type of the s-expression. More...
 
std::string KI_TEST::getDebugType (SEXPR::SEXPR_TYPE aType)
 Get a debug-friendly string for a given s-expr type. More...
 
std::string KI_TEST::GetSexprDebugType (const SEXPR::SEXPR &aSexpr)
 
bool KI_TEST::IsSexprOfType (const SEXPR::SEXPR &aSexpr, SEXPR::SEXPR_TYPE aType)
 
template<typename VAL_T >
bool KI_TEST::IsSexprValueEqual (const VAL_T &aGot, const VAL_T &aExpected)
 Predicate to check two s-expr values (of the same type) are equal. More...
 
bool KI_TEST::SexprIsSymbol (const SEXPR::SEXPR &aSexpr)
 Test predicate: is the s-expression a symbol? More...
 
bool KI_TEST::SexprIsSymbolWithValue (const SEXPR::SEXPR &aSexpr, const std::string &aVal)
 Test predicate: is the s-expression a symbol with the given value? More...
 
bool KI_TEST::SexprIsString (const SEXPR::SEXPR &aSexpr)
 Test predicate: is the s-expression a string? More...
 
bool KI_TEST::SexprIsStringWithValue (const SEXPR::SEXPR &aSexpr, const std::string &aVal)
 Test predicate: is the s-expression a string with the given value? More...
 
bool KI_TEST::SexprIsInteger (const SEXPR::SEXPR &aSexpr)
 Test predicate: is the s-expression an integer? More...
 
bool KI_TEST::SexprIsIntegerWithValue (const SEXPR::SEXPR &aSexpr, std::int64_t aVal)
 Test predicate: is the s-expression an integer with the given value? More...
 
bool KI_TEST::SexprIsDouble (const SEXPR::SEXPR &aSexpr)
 Test predicate: is the s-expression a double? More...
 
bool KI_TEST::SexprIsDoubleWithValue (const SEXPR::SEXPR &aSexpr, double aVal)
 Test predicate: is the s-expression a double with the given value? More...
 
bool KI_TEST::SexprIsList (const SEXPR::SEXPR &aSexpr)
 Test predicate: is the s-expression a double? More...
 
bool KI_TEST::SexprIsListOfLength (const SEXPR::SEXPR &aSexpr, size_t aExpectedLength)
 Test predicate: is the s-expression a list with the given length? More...
 
bool KI_TEST::SexprConvertsToString (const SEXPR::SEXPR &aSexpr, const std::string &aExpStr)
 Predicate to check an SEXPR object converts to the expected string. More...