Lines Matching refs:line
330 tokenize_result(const std::string& line, std::string& out_state,
333 const std::string::size_type pos = line.find_first_of(":(");
335 out_state = line;
338 } else if (line[pos] == ':') {
339 out_state = line.substr(0, pos);
341 out_reason = atf::text::trim(line.substr(pos + 1));
342 } else if (line[pos] == '(') {
343 const std::string::size_type pos2 = line.find("):", pos);
345 throw std::runtime_error("Invalid test case result '" + line +
347 out_state = line.substr(0, pos);
348 out_arg = line.substr(pos + 1, pos2 - pos - 1);
349 out_reason = atf::text::trim(line.substr(pos2 + 2));
510 t = p.expect(nl_type, "new line");
514 "line or eof");
540 detail::parse_test_case_result(const std::string& line)
543 tokenize_result(line, state, arg, reason);
562 throw std::runtime_error("Unknown test case result type in: " + line);
621 impl::atf_tps_writer::stdout_tc(const std::string& line)
623 m_os << "tc-so:" << line << "\n";
630 impl::atf_tps_writer::stderr_tc(const std::string& line)
632 m_os << "tc-se:" << line << "\n";
680 std::string line, extra_line;
681 std::getline(results_file, line);
686 line += "<<NEWLINE UNEXPECTED>>" + extra_line;
690 return detail::parse_test_case_result(line);
707 line_callback(const size_t index, const std::string& line)
710 case 0: m_writer.stdout_tc(line); break;
711 case 1: m_writer.stderr_tc(line); break;