class_docstr: Tests the env variable or the command line flag to filter tests.
code: def testNegativeFilters(self):
      self.RunAndVerify(
          "*-BazTest.TestOne",
          [
              "FooTest.Abc",
              "FooTest.Xyz",
              "BarTest.TestOne",
              "BarTest.TestTwo",
              "BarTest.TestThree",
              "BazTest.TestA",
              "BazTest.TestB",
          ]
          + DEATH_TESTS
          + PARAM_TESTS,
      )
  
      self.RunAndVerify(
          "*-FooTest.Abc:BazTest.*",
          [
              "FooTest.Xyz",
              "BarTest.TestOne",
              "BarTest.TestTwo",
              "BarTest.TestThree",
          ]
          + DEATH_TESTS
          + PARAM_TESTS,
      )
  
      self.RunAndVerify(
          "BarTest.*-BarTest.TestOne",
          [
              "BarTest.TestTwo",
              "BarTest.TestThree",
          ],
      )
  
      # Tests without leading '*'.
      self.RunAndVerify(
          "-FooTest.Abc:FooTest.Xyz:BazTest.*",
          [
              "BarTest.TestOne",
              "BarTest.TestTwo",
              "BarTest.TestThree",
          ]
          + DEATH_TESTS
          + PARAM_TESTS,
      )
  
      # Value parameterized tests.
      self.RunAndVerify("*/*", PARAM_TESTS)
  
      # Value parameterized tests filtering by the sequence name.
      self.RunAndVerify(
          "SeqP/*",
          [
              "SeqP/ParamTest.TestX/0",
              "SeqP/ParamTest.TestX/1",
              "SeqP/ParamTest.TestY/0",
              "SeqP/ParamTest.TestY/1",
          ],
      )
  
      # Value parameterized tests filtering by the test name.
      self.RunAndVerify(
          "*/0",
          [
              "SeqP/ParamTest.TestX/0",
              "SeqP/ParamTest.TestY/0",
              "SeqQ/ParamTest.TestX/0",
              "SeqQ/ParamTest.TestY/0",
          ],
      )
  
imports: import os
  import re
  import sys
  from googletest.test import gtest_test_utils
label_desc: Use image node_id 22 for calling the GTestFilterUnitTest obj's underlying member method code with example usage: obj.testNegativeFilters() without return types