Definition at line 3827 of file gtest.cc.
◆ JsonUnitTestResultPrinter()
testing::internal::JsonUnitTestResultPrinter::JsonUnitTestResultPrinter |
( |
const char * | output_file | ) |
|
|
explicit |
Definition at line 3877 of file gtest.cc.
3878 : output_file_(output_file) {
3879 if (output_file_.empty()) {
3880 GTEST_LOG_(FATAL) <<
"JSON output file may not be null";
3881 }
3882}
#define GTEST_LOG_(severity)
◆ OnTestIterationEnd()
void testing::internal::JsonUnitTestResultPrinter::OnTestIterationEnd |
( |
const UnitTest & | unit_test, |
|
|
int | iteration ) |
|
virtual |
Reimplemented from testing::EmptyTestEventListener.
Definition at line 3884 of file gtest.cc.
3885 {
3886 FILE* jsonout = NULL;
3887 FilePath output_file(output_file_);
3888 FilePath output_dir(output_file.RemoveFileName());
3889
3890 if (output_dir.CreateDirectoriesRecursively()) {
3892 }
3893 if (jsonout == NULL) {
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904 GTEST_LOG_(FATAL) <<
"Unable to open file \""
3905 << output_file_ << "\"";
3906 }
3907 std::stringstream stream;
3908 PrintJsonUnitTest(&stream, unit_test);
3910 fclose(jsonout);
3911}
FILE * FOpen(const char *path, const char *mode)
GTEST_API_ std::string StringStreamToString(::std::stringstream *stream)
The documentation for this class was generated from the following file:
- libraries/fc/include/fc/crypto/webauthn_json/thirdparty/gtest/googletest/src/gtest.cc