Lines Matching refs:file

187 // The default output file.
194 // The environment variable name for the test shard status file.
218 GTEST_LOG_(FATAL) << "Unable to open file \"" << output_file << "\"";
311 "optionally followed by a colon and an output file name or directory. "
315 "within that directory, with file-names based on the test "
450 AssertHelper::AssertHelper(TestPartResult::Type type, const char* file,
452 : data_(new AssertHelperData(type, file, line, message)) {}
459 data_->type, data_->file, data_->line,
476 // A test that fails at a given file/line location with a given message.
487 AssertHelper(TestPartResult::kNonFatalFailure, loc_.file.c_str(),
551 location.file.c_str(), location.line, [message, location] {
613 testcase.second.code_location.file.c_str(),
665 // Returns the name of the requested output file, or the default if none
2317 "type_param", "value_param", "file", "line"};
2323 "value_param", "file", "line", "result", "timestamp"};
2347 // This function is only used when file systems are enabled.
2491 nullptr, // No info about the source file where the exception occurred.
2788 GTEST_LOG_(ERROR) << FormatFileLocation(code_location.file.c_str(),
2869 TestPartResult(TestPartResult::kSkip, this->file(), this->line(), "");
2978 // We do this by sorting lexicographically on (file, line number), providing
2984 // API, and in more exotic scenarios a single file may be part of multiple
2988 if (const int result = std::strcmp(a->file(), b->file())) {
3897 // This class generates an XML output file.
3985 // The output file.
3996 GTEST_LOG_(FATAL) << "XML output file may not be null";
4246 OutputXmlAttribute(stream, kTestsuite, "file", test_info.file());
4454 // This class generates an JSON output file.
4508 // The output file.
4520 GTEST_LOG_(FATAL) << "JSON output file may not be null";
4697 OutputJsonKey(stream, kTestsuite, "file", test_info.file(), kIndent);
5035 // A helper class that creates the premature-exit file in its
5036 // constructor and deletes the file in its destructor.
5042 // If a path to the premature-exit file is specified...
5044 // create the file with a single "0" character in it. I/O
5328 << internal::FormatFileLocation(trace.file, trace.line) << " "
5408 // 1. Upon start, Google Test creates a file whose absolute path
5411 // 2. When Google Test has finished its work, it deletes the file.
5415 // of the file at the end of the test execution to see if it has
5419 // create/delete the premature exit file, as doing so is unnecessary
5421 // the file upon entering/leaving this function. If the program
5423 // premature-exit file will be left undeleted, causing a test runner
5424 // that understands the premature-exit-file protocol to report the
5471 // input (e.g. passing an invalid file descriptor). The default handling
5991 // Reads the GTEST_SHARD_STATUS_FILE environment variable, and creates the file
5992 // if the variable is present. If a file already exists at this location, this
5993 // function will write over it. If the variable is present, but the file cannot
5998 FILE* const file = posix::FOpen(test_shard_file, "w");
5999 if (file == nullptr) {
6001 "Could not write to the test shard status file \"%s\" "
6007 fclose(file);
6532 " file name. @YFILE_PATH@D defaults to @Gtest_detail.xml@D.\n"
6613 GTEST_LOG_(FATAL) << "Unable to open file \"" << GTEST_FLAG_GET(flagfile)
6891 // Pushes the given source file location and message onto a per-thread
6893 void ScopedTrace::PushTrace(const char* file, int line, std::string message) {
6895 trace.file = file;