Lines Matching refs:failure
115 Failure failure; in addFailureInfo() local
116 failure.file_ = file; in addFailureInfo()
117 failure.line_ = line; in addFailureInfo()
119 failure.expr_ = expr; in addFailureInfo()
121 failure.nestingLevel_ = nestingLevel; in addFailureInfo()
122 failures_.push_back(failure); in addFailureInfo()
165 const Failure& failure = *it; in printFailure() local
166 std::string indent(failure.nestingLevel_ * 2, ' '); in printFailure()
167 if (failure.file_) { in printFailure()
168 printf("%s%s(%d): ", indent.c_str(), failure.file_, failure.line_); in printFailure()
170 if (!failure.expr_.empty()) { in printFailure()
171 printf("%s\n", failure.expr_.c_str()); in printFailure()
172 } else if (failure.file_) { in printFailure()
175 if (!failure.message_.empty()) { in printFailure()
176 std::string reindented = indentText(failure.message_, indent + " "); in printFailure()