Public Member Functions | Private Member Functions | List of all members
googletest-json-output-unittest.GTestJsonOutputUnitTest Class Reference
Inheritance diagram for googletest-json-output-unittest.GTestJsonOutputUnitTest:
Inheritance graph
[legend]

Public Member Functions

def testDefaultOutputFile (self)
 
def testDefaultOutputFile (self)
 
def testDefaultOutputFile (self)
 
def testDefaultOutputFile (self)
 
def testDefaultOutputFile (self)
 
def testEmptyJsonOutput (self)
 
def testEmptyJsonOutput (self)
 
def testEmptyJsonOutput (self)
 
def testEmptyJsonOutput (self)
 
def testFilteredTestJsonOutput (self)
 
def testFilteredTestJsonOutput (self)
 
def testFilteredTestJsonOutput (self)
 
def testFilteredTestJsonOutput (self)
 
def testFilteredTestJsonOutput (self)
 
def testNonEmptyJsonOutput (self)
 
def testNonEmptyJsonOutput (self)
 
def testNonEmptyJsonOutput (self)
 
def testNonEmptyJsonOutput (self)
 
def testNonEmptyJsonOutput (self)
 
def testNoTestJsonOutput (self)
 
def testSuppressedJsonOutput (self)
 
def testSuppressedJsonOutput (self)
 
def testSuppressedJsonOutput (self)
 
def testSuppressedJsonOutput (self)
 
def testSuppressedJsonOutput (self)
 
def testTimestampValue (self)
 
def testTimestampValue (self)
 
def testTimestampValue (self)
 
def testTimestampValue (self)
 
def testTimestampValue (self)
 

Private Member Functions

def _GetJsonOutput (self, gtest_prog_name, extra_args, expected_exit_code)
 
def _GetJsonOutput (self, gtest_prog_name, extra_args, expected_exit_code)
 
def _GetJsonOutput (self, gtest_prog_name, extra_args, expected_exit_code)
 
def _GetJsonOutput (self, gtest_prog_name, extra_args, expected_exit_code)
 
def _GetJsonOutput (self, gtest_prog_name, extra_args, expected_exit_code)
 
def _TestJsonOutput (self, gtest_prog_name, expected, expected_exit_code, extra_args=None)
 
def _TestJsonOutput (self, gtest_prog_name, expected, expected_exit_code, extra_args=None)
 
def _TestJsonOutput (self, gtest_prog_name, expected, expected_exit_code, extra_args=None)
 
def _TestJsonOutput (self, gtest_prog_name, expected, expected_exit_code, extra_args=None)
 
def _TestJsonOutput (self, gtest_prog_name, expected, expected_exit_code, extra_args=None)
 

Detailed Description

Unit test for Google Test's JSON output functionality.

Definition at line 606 of file bloaty/third_party/googletest/googletest/test/googletest-json-output-unittest.py.

Member Function Documentation

◆ _GetJsonOutput() [1/5]

def googletest-json-output-unittest.GTestJsonOutputUnitTest._GetJsonOutput (   self,
  gtest_prog_name,
  extra_args,
  expected_exit_code 
)
private
Returns the JSON output generated by running the program gtest_prog_name.

Furthermore, the program's exit code must be expected_exit_code.

Args:
  gtest_prog_name: Google Test binary name.
  extra_args: extra arguments to binary invocation.
  expected_exit_code: program's exit code.

Definition at line 575 of file bloaty/third_party/protobuf/third_party/googletest/googletest/test/googletest-json-output-unittest.py.

◆ _GetJsonOutput() [2/5]

def googletest-json-output-unittest.GTestJsonOutputUnitTest._GetJsonOutput (   self,
  gtest_prog_name,
  extra_args,
  expected_exit_code 
)
private
Returns the JSON output generated by running the program gtest_prog_name.

Furthermore, the program's exit code must be expected_exit_code.

Args:
  gtest_prog_name: Google Test binary name.
  extra_args: extra arguments to binary invocation.
  expected_exit_code: program's exit code.

Definition at line 575 of file protobuf/third_party/googletest/googletest/test/googletest-json-output-unittest.py.

◆ _GetJsonOutput() [3/5]

def googletest-json-output-unittest.GTestJsonOutputUnitTest._GetJsonOutput (   self,
  gtest_prog_name,
  extra_args,
  expected_exit_code 
)
private
Returns the JSON output generated by running the program gtest_prog_name.

Furthermore, the program's exit code must be expected_exit_code.

Args:
  gtest_prog_name: Google Test binary name.
  extra_args: extra arguments to binary invocation.
  expected_exit_code: program's exit code.

Definition at line 719 of file bloaty/third_party/googletest/googletest/test/googletest-json-output-unittest.py.

◆ _GetJsonOutput() [4/5]

def googletest-json-output-unittest.GTestJsonOutputUnitTest._GetJsonOutput (   self,
  gtest_prog_name,
  extra_args,
  expected_exit_code 
)
private
Returns the JSON output generated by running the program gtest_prog_name.

Furthermore, the program's exit code must be expected_exit_code.

Args:
  gtest_prog_name: Google Test binary name.
  extra_args: extra arguments to binary invocation.
  expected_exit_code: program's exit code.

Definition at line 745 of file boringssl-with-bazel/src/third_party/googletest/test/googletest-json-output-unittest.py.

◆ _GetJsonOutput() [5/5]

def googletest-json-output-unittest.GTestJsonOutputUnitTest._GetJsonOutput (   self,
  gtest_prog_name,
  extra_args,
  expected_exit_code 
)
private
Returns the JSON output generated by running the program gtest_prog_name.

Furthermore, the program's exit code must be expected_exit_code.

Args:
  gtest_prog_name: Google Test binary name.
  extra_args: extra arguments to binary invocation.
  expected_exit_code: program's exit code.

Definition at line 789 of file googletest/googletest/test/googletest-json-output-unittest.py.

◆ _TestJsonOutput() [1/5]

def googletest-json-output-unittest.GTestJsonOutputUnitTest._TestJsonOutput (   self,
  gtest_prog_name,
  expected,
  expected_exit_code,
  extra_args = None 
)
private
Checks the JSON output generated by the Google Test binary.

Asserts that the JSON document generated by running the program
gtest_prog_name matches expected_json, a string containing another
JSON document.  Furthermore, the program's exit code must be
expected_exit_code.

Args:
  gtest_prog_name: Google Test binary name.
  expected: expected output.
  expected_exit_code: program's exit code.
  extra_args: extra arguments to binary invocation.

Definition at line 607 of file bloaty/third_party/protobuf/third_party/googletest/googletest/test/googletest-json-output-unittest.py.

◆ _TestJsonOutput() [2/5]

def googletest-json-output-unittest.GTestJsonOutputUnitTest._TestJsonOutput (   self,
  gtest_prog_name,
  expected,
  expected_exit_code,
  extra_args = None 
)
private
Checks the JSON output generated by the Google Test binary.

Asserts that the JSON document generated by running the program
gtest_prog_name matches expected_json, a string containing another
JSON document.  Furthermore, the program's exit code must be
expected_exit_code.

Args:
  gtest_prog_name: Google Test binary name.
  expected: expected output.
  expected_exit_code: program's exit code.
  extra_args: extra arguments to binary invocation.

Definition at line 607 of file protobuf/third_party/googletest/googletest/test/googletest-json-output-unittest.py.

◆ _TestJsonOutput() [3/5]

def googletest-json-output-unittest.GTestJsonOutputUnitTest._TestJsonOutput (   self,
  gtest_prog_name,
  expected,
  expected_exit_code,
  extra_args = None 
)
private
Checks the JSON output generated by the Google Test binary.

Asserts that the JSON document generated by running the program
gtest_prog_name matches expected_json, a string containing another
JSON document.  Furthermore, the program's exit code must be
expected_exit_code.

Args:
  gtest_prog_name: Google Test binary name.
  expected: expected output.
  expected_exit_code: program's exit code.
  extra_args: extra arguments to binary invocation.

Definition at line 751 of file bloaty/third_party/googletest/googletest/test/googletest-json-output-unittest.py.

◆ _TestJsonOutput() [4/5]

def googletest-json-output-unittest.GTestJsonOutputUnitTest._TestJsonOutput (   self,
  gtest_prog_name,
  expected,
  expected_exit_code,
  extra_args = None 
)
private
Checks the JSON output generated by the Google Test binary.

Asserts that the JSON document generated by running the program
gtest_prog_name matches expected_json, a string containing another
JSON document.  Furthermore, the program's exit code must be
expected_exit_code.

Args:
  gtest_prog_name: Google Test binary name.
  expected: expected output.
  expected_exit_code: program's exit code.
  extra_args: extra arguments to binary invocation.

Definition at line 777 of file boringssl-with-bazel/src/third_party/googletest/test/googletest-json-output-unittest.py.

◆ _TestJsonOutput() [5/5]

def googletest-json-output-unittest.GTestJsonOutputUnitTest._TestJsonOutput (   self,
  gtest_prog_name,
  expected,
  expected_exit_code,
  extra_args = None 
)
private
Checks the JSON output generated by the Google Test binary.

Asserts that the JSON document generated by running the program
gtest_prog_name matches expected_json, a string containing another
JSON document.  Furthermore, the program's exit code must be
expected_exit_code.

Args:
  gtest_prog_name: Google Test binary name.
  expected: expected output.
  expected_exit_code: program's exit code.
  extra_args: extra arguments to binary invocation.

Definition at line 821 of file googletest/googletest/test/googletest-json-output-unittest.py.

◆ testDefaultOutputFile() [1/5]

def googletest-json-output-unittest.GTestJsonOutputUnitTest.testDefaultOutputFile (   self)
Verifies the default output file name.

Confirms that Google Test produces an JSON output file with the expected
default name if no name is explicitly specified.

Definition at line 511 of file protobuf/third_party/googletest/googletest/test/googletest-json-output-unittest.py.

◆ testDefaultOutputFile() [2/5]

def googletest-json-output-unittest.GTestJsonOutputUnitTest.testDefaultOutputFile (   self)
Verifies the default output file name.

Confirms that Google Test produces an JSON output file with the expected
default name if no name is explicitly specified.

Definition at line 511 of file bloaty/third_party/protobuf/third_party/googletest/googletest/test/googletest-json-output-unittest.py.

◆ testDefaultOutputFile() [3/5]

def googletest-json-output-unittest.GTestJsonOutputUnitTest.testDefaultOutputFile (   self)
Verifies the default output file name.

Confirms that Google Test produces an JSON output file with the expected
default name if no name is explicitly specified.

Definition at line 655 of file bloaty/third_party/googletest/googletest/test/googletest-json-output-unittest.py.

◆ testDefaultOutputFile() [4/5]

def googletest-json-output-unittest.GTestJsonOutputUnitTest.testDefaultOutputFile (   self)
Verifies the default output file name.

Confirms that Google Test produces an JSON output file with the expected
default name if no name is explicitly specified.

Definition at line 681 of file boringssl-with-bazel/src/third_party/googletest/test/googletest-json-output-unittest.py.

◆ testDefaultOutputFile() [5/5]

def googletest-json-output-unittest.GTestJsonOutputUnitTest.testDefaultOutputFile (   self)
Verifies the default output file name.

Confirms that Google Test produces an JSON output file with the expected
default name if no name is explicitly specified.

Definition at line 725 of file googletest/googletest/test/googletest-json-output-unittest.py.

◆ testEmptyJsonOutput() [1/4]

def googletest-json-output-unittest.GTestJsonOutputUnitTest.testEmptyJsonOutput (   self)
Verifies JSON output for a Google Test binary without actual tests.

Runs a test program that generates an empty JSON output, and
tests that the JSON output is expected.

Definition at line 478 of file protobuf/third_party/googletest/googletest/test/googletest-json-output-unittest.py.

◆ testEmptyJsonOutput() [2/4]

def googletest-json-output-unittest.GTestJsonOutputUnitTest.testEmptyJsonOutput (   self)
Verifies JSON output for a Google Test binary without actual tests.

Runs a test program that generates an empty JSON output, and
tests that the JSON output is expected.

Definition at line 478 of file bloaty/third_party/protobuf/third_party/googletest/googletest/test/googletest-json-output-unittest.py.

◆ testEmptyJsonOutput() [3/4]

def googletest-json-output-unittest.GTestJsonOutputUnitTest.testEmptyJsonOutput (   self)
Verifies JSON output for a Google Test binary without actual tests.

Runs a test program that generates an empty JSON output, and
tests that the JSON output is expected.

Definition at line 622 of file bloaty/third_party/googletest/googletest/test/googletest-json-output-unittest.py.

◆ testEmptyJsonOutput() [4/4]

def googletest-json-output-unittest.GTestJsonOutputUnitTest.testEmptyJsonOutput (   self)
Verifies JSON output for a Google Test binary without actual tests.

Runs a test program that generates an empty JSON output, and
tests that the JSON output is expected.

Definition at line 648 of file boringssl-with-bazel/src/third_party/googletest/test/googletest-json-output-unittest.py.

◆ testFilteredTestJsonOutput() [1/5]

def googletest-json-output-unittest.GTestJsonOutputUnitTest.testFilteredTestJsonOutput (   self)
Verifies JSON output when a filter is applied.

Runs a test program that executes only some tests and verifies that
non-selected tests do not show up in the JSON output.

Definition at line 565 of file protobuf/third_party/googletest/googletest/test/googletest-json-output-unittest.py.

◆ testFilteredTestJsonOutput() [2/5]

def googletest-json-output-unittest.GTestJsonOutputUnitTest.testFilteredTestJsonOutput (   self)
Verifies JSON output when a filter is applied.

Runs a test program that executes only some tests and verifies that
non-selected tests do not show up in the JSON output.

Definition at line 565 of file bloaty/third_party/protobuf/third_party/googletest/googletest/test/googletest-json-output-unittest.py.

◆ testFilteredTestJsonOutput() [3/5]

def googletest-json-output-unittest.GTestJsonOutputUnitTest.testFilteredTestJsonOutput (   self)
Verifies JSON output when a filter is applied.

Runs a test program that executes only some tests and verifies that
non-selected tests do not show up in the JSON output.

Definition at line 709 of file bloaty/third_party/googletest/googletest/test/googletest-json-output-unittest.py.

◆ testFilteredTestJsonOutput() [4/5]

def googletest-json-output-unittest.GTestJsonOutputUnitTest.testFilteredTestJsonOutput (   self)
Verifies JSON output when a filter is applied.

Runs a test program that executes only some tests and verifies that
non-selected tests do not show up in the JSON output.

Definition at line 735 of file boringssl-with-bazel/src/third_party/googletest/test/googletest-json-output-unittest.py.

◆ testFilteredTestJsonOutput() [5/5]

def googletest-json-output-unittest.GTestJsonOutputUnitTest.testFilteredTestJsonOutput (   self)
Verifies JSON output when a filter is applied.

Runs a test program that executes only some tests and verifies that
non-selected tests do not show up in the JSON output.

Definition at line 779 of file googletest/googletest/test/googletest-json-output-unittest.py.

◆ testNonEmptyJsonOutput() [1/5]

def googletest-json-output-unittest.GTestJsonOutputUnitTest.testNonEmptyJsonOutput (   self)
Verifies JSON output for a Google Test binary with non-empty output.

Runs a test program that generates a non-empty JSON output, and
tests that the JSON output is expected.

Definition at line 470 of file protobuf/third_party/googletest/googletest/test/googletest-json-output-unittest.py.

◆ testNonEmptyJsonOutput() [2/5]

def googletest-json-output-unittest.GTestJsonOutputUnitTest.testNonEmptyJsonOutput (   self)
Verifies JSON output for a Google Test binary with non-empty output.

Runs a test program that generates a non-empty JSON output, and
tests that the JSON output is expected.

Definition at line 470 of file bloaty/third_party/protobuf/third_party/googletest/googletest/test/googletest-json-output-unittest.py.

◆ testNonEmptyJsonOutput() [3/5]

def googletest-json-output-unittest.GTestJsonOutputUnitTest.testNonEmptyJsonOutput (   self)
Verifies JSON output for a Google Test binary with non-empty output.

Runs a test program that generates a non-empty JSON output, and
tests that the JSON output is expected.

Definition at line 614 of file bloaty/third_party/googletest/googletest/test/googletest-json-output-unittest.py.

◆ testNonEmptyJsonOutput() [4/5]

def googletest-json-output-unittest.GTestJsonOutputUnitTest.testNonEmptyJsonOutput (   self)
Verifies JSON output for a Google Test binary with non-empty output.

Runs a test program that generates a non-empty JSON output, and
tests that the JSON output is expected.

Definition at line 640 of file boringssl-with-bazel/src/third_party/googletest/test/googletest-json-output-unittest.py.

◆ testNonEmptyJsonOutput() [5/5]

def googletest-json-output-unittest.GTestJsonOutputUnitTest.testNonEmptyJsonOutput (   self)
Verifies JSON output for a Google Test binary with non-empty output.

Runs a test program that generates a non-empty JSON output, and
tests that the JSON output is expected.

Definition at line 684 of file googletest/googletest/test/googletest-json-output-unittest.py.

◆ testNoTestJsonOutput()

def googletest-json-output-unittest.GTestJsonOutputUnitTest.testNoTestJsonOutput (   self)
Verifies JSON output for a Google Test binary without actual tests.

Runs a test program that generates an JSON output for a binary with no
tests, and tests that the JSON output is expected.

Definition at line 692 of file googletest/googletest/test/googletest-json-output-unittest.py.

◆ testSuppressedJsonOutput() [1/5]

def googletest-json-output-unittest.GTestJsonOutputUnitTest.testSuppressedJsonOutput (   self)
Verifies that no JSON output is generated.

Tests that no JSON file is generated if the default JSON listener is
shut down before RUN_ALL_TESTS is invoked.

Definition at line 535 of file bloaty/third_party/protobuf/third_party/googletest/googletest/test/googletest-json-output-unittest.py.

◆ testSuppressedJsonOutput() [2/5]

def googletest-json-output-unittest.GTestJsonOutputUnitTest.testSuppressedJsonOutput (   self)
Verifies that no JSON output is generated.

Tests that no JSON file is generated if the default JSON listener is
shut down before RUN_ALL_TESTS is invoked.

Definition at line 535 of file protobuf/third_party/googletest/googletest/test/googletest-json-output-unittest.py.

◆ testSuppressedJsonOutput() [3/5]

def googletest-json-output-unittest.GTestJsonOutputUnitTest.testSuppressedJsonOutput (   self)
Verifies that no JSON output is generated.

Tests that no JSON file is generated if the default JSON listener is
shut down before RUN_ALL_TESTS is invoked.

Definition at line 679 of file bloaty/third_party/googletest/googletest/test/googletest-json-output-unittest.py.

◆ testSuppressedJsonOutput() [4/5]

def googletest-json-output-unittest.GTestJsonOutputUnitTest.testSuppressedJsonOutput (   self)
Verifies that no JSON output is generated.

Tests that no JSON file is generated if the default JSON listener is
shut down before RUN_ALL_TESTS is invoked.

Definition at line 705 of file boringssl-with-bazel/src/third_party/googletest/test/googletest-json-output-unittest.py.

◆ testSuppressedJsonOutput() [5/5]

def googletest-json-output-unittest.GTestJsonOutputUnitTest.testSuppressedJsonOutput (   self)
Verifies that no JSON output is generated.

Tests that no JSON file is generated if the default JSON listener is
shut down before RUN_ALL_TESTS is invoked.

Definition at line 749 of file googletest/googletest/test/googletest-json-output-unittest.py.

◆ testTimestampValue() [1/5]

def googletest-json-output-unittest.GTestJsonOutputUnitTest.testTimestampValue (   self)
Checks whether the timestamp attribute in the JSON output is valid.

Runs a test program that generates an empty JSON output, and checks if
the timestamp attribute in the testsuites tag is valid.

Definition at line 487 of file bloaty/third_party/protobuf/third_party/googletest/googletest/test/googletest-json-output-unittest.py.

◆ testTimestampValue() [2/5]

def googletest-json-output-unittest.GTestJsonOutputUnitTest.testTimestampValue (   self)
Checks whether the timestamp attribute in the JSON output is valid.

Runs a test program that generates an empty JSON output, and checks if
the timestamp attribute in the testsuites tag is valid.

Definition at line 487 of file protobuf/third_party/googletest/googletest/test/googletest-json-output-unittest.py.

◆ testTimestampValue() [3/5]

def googletest-json-output-unittest.GTestJsonOutputUnitTest.testTimestampValue (   self)
Checks whether the timestamp attribute in the JSON output is valid.

Runs a test program that generates an empty JSON output, and checks if
the timestamp attribute in the testsuites tag is valid.

Definition at line 631 of file bloaty/third_party/googletest/googletest/test/googletest-json-output-unittest.py.

◆ testTimestampValue() [4/5]

def googletest-json-output-unittest.GTestJsonOutputUnitTest.testTimestampValue (   self)
Checks whether the timestamp attribute in the JSON output is valid.

Runs a test program that generates an empty JSON output, and checks if
the timestamp attribute in the testsuites tag is valid.

Definition at line 657 of file boringssl-with-bazel/src/third_party/googletest/test/googletest-json-output-unittest.py.

◆ testTimestampValue() [5/5]

def googletest-json-output-unittest.GTestJsonOutputUnitTest.testTimestampValue (   self)
Checks whether the timestamp attribute in the JSON output is valid.

Runs a test program that generates an empty JSON output, and checks if
the timestamp attribute in the testsuites tag is valid.

Definition at line 701 of file googletest/googletest/test/googletest-json-output-unittest.py.


The documentation for this class was generated from the following file:


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:30