Function describe

Synopsis

#include <include/internal/catch_matchers.h>

std::string describe() const override

Description

No description yet.

Source

Lines 78-92 in include/internal/catch_matchers.h.

std::string describe() const override {
    std::string description;
    description.reserve( 4 + m_matchers.size()*32 );
    description += "( ";
    bool first = true;
    for( auto matcher : m_matchers ) {
        if( first )
            first = false;
        else
            description += " and ";
        description += matcher->toString();
    }
    description += " )";
    return description;
}





Add Discussion as Guest

Log in