proxygen
gmock_leak_test.GMockLeakTest Class Reference
Inheritance diagram for gmock_leak_test.GMockLeakTest:

Public Member Functions

def testCatchesLeakedMockByDefault (self)
 
def testDoesNotCatchLeakedMockWhenDisabled (self)
 
def testCatchesLeakedMockWhenEnabled (self)
 
def testCatchesLeakedMockWhenEnabledWithExplictFlagValue (self)
 
def testCatchesMultipleLeakedMocks (self)
 
def testCatchesLeakedMockByDefault (self)
 
def testDoesNotCatchLeakedMockWhenDisabled (self)
 
def testCatchesLeakedMockWhenEnabled (self)
 
def testCatchesLeakedMockWhenEnabledWithExplictFlagValue (self)
 
def testCatchesMultipleLeakedMocks (self)
 
def testCatchesLeakedMockByDefault (self)
 
def testDoesNotCatchLeakedMockWhenDisabled (self)
 
def testCatchesLeakedMockWhenEnabled (self)
 
def testCatchesLeakedMockWhenEnabledWithExplictFlagValue (self)
 
def testCatchesMultipleLeakedMocks (self)
 

Detailed Description

Definition at line 56 of file gmock_leak_test.py.

Member Function Documentation

def gmock_leak_test.GMockLeakTest.testCatchesLeakedMockByDefault (   self)

Definition at line 58 of file gmock_leak_test.py.

References gmock_test_utils.Subprocess.

Referenced by gmock_leak_test.GMockLeakTest.testCatchesLeakedMockByDefault().

59  self.assertNotEqual(
60  0,
61  gmock_test_utils.Subprocess(TEST_WITH_EXPECT_CALL,
62  env=environ).exit_code)
63  self.assertNotEqual(
64  0,
65  gmock_test_utils.Subprocess(TEST_WITH_ON_CALL,
66  env=environ).exit_code)
67 
def gmock_leak_test.GMockLeakTest.testCatchesLeakedMockByDefault (   self)

Definition at line 58 of file gmock_leak_test.py.

References gmock_test_utils.Subprocess, and gmock_leak_test.GMockLeakTest.testCatchesLeakedMockByDefault().

59  self.assertNotEqual(
60  0,
61  gmock_test_utils.Subprocess(TEST_WITH_EXPECT_CALL,
62  env=environ).exit_code)
63  self.assertNotEqual(
64  0,
65  gmock_test_utils.Subprocess(TEST_WITH_ON_CALL,
66  env=environ).exit_code)
67 
def gmock_leak_test.GMockLeakTest.testCatchesLeakedMockByDefault (   self)

Definition at line 58 of file gmock_leak_test.py.

References gmock_test_utils.Subprocess, and gmock_leak_test.GMockLeakTest.testCatchesLeakedMockByDefault().

59  self.assertNotEqual(
60  0,
61  gmock_test_utils.Subprocess(TEST_WITH_EXPECT_CALL,
62  env=environ).exit_code)
63  self.assertNotEqual(
64  0,
65  gmock_test_utils.Subprocess(TEST_WITH_ON_CALL,
66  env=environ).exit_code)
67 
def gmock_leak_test.GMockLeakTest.testCatchesLeakedMockWhenEnabled (   self)

Definition at line 80 of file gmock_leak_test.py.

References gmock_test_utils.Subprocess, and gmock_leak_test.GMockLeakTest.testCatchesLeakedMockWhenEnabled().

81  self.assertNotEqual(
82  0,
83  gmock_test_utils.Subprocess(TEST_WITH_EXPECT_CALL +
84  ['--gmock_catch_leaked_mocks'],
85  env=environ).exit_code)
86  self.assertNotEqual(
87  0,
88  gmock_test_utils.Subprocess(TEST_WITH_ON_CALL +
89  ['--gmock_catch_leaked_mocks'],
90  env=environ).exit_code)
91 
def gmock_leak_test.GMockLeakTest.testCatchesLeakedMockWhenEnabled (   self)

Definition at line 80 of file gmock_leak_test.py.

References gmock_test_utils.Subprocess.

Referenced by gmock_leak_test.GMockLeakTest.testCatchesLeakedMockWhenEnabled().

81  self.assertNotEqual(
82  0,
83  gmock_test_utils.Subprocess(TEST_WITH_EXPECT_CALL +
84  ['--gmock_catch_leaked_mocks'],
85  env=environ).exit_code)
86  self.assertNotEqual(
87  0,
88  gmock_test_utils.Subprocess(TEST_WITH_ON_CALL +
89  ['--gmock_catch_leaked_mocks'],
90  env=environ).exit_code)
91 
def gmock_leak_test.GMockLeakTest.testCatchesLeakedMockWhenEnabled (   self)

Definition at line 80 of file gmock_leak_test.py.

References gmock_test_utils.Subprocess, and gmock_leak_test.GMockLeakTest.testCatchesLeakedMockWhenEnabled().

81  self.assertNotEqual(
82  0,
83  gmock_test_utils.Subprocess(TEST_WITH_EXPECT_CALL +
84  ['--gmock_catch_leaked_mocks'],
85  env=environ).exit_code)
86  self.assertNotEqual(
87  0,
88  gmock_test_utils.Subprocess(TEST_WITH_ON_CALL +
89  ['--gmock_catch_leaked_mocks'],
90  env=environ).exit_code)
91 
def gmock_leak_test.GMockLeakTest.testCatchesLeakedMockWhenEnabledWithExplictFlagValue (   self)

Definition at line 92 of file gmock_leak_test.py.

References gmock_test_utils.Subprocess.

Referenced by gmock_leak_test.GMockLeakTest.testCatchesLeakedMockWhenEnabledWithExplictFlagValue().

93  self.assertNotEqual(
94  0,
95  gmock_test_utils.Subprocess(TEST_WITH_EXPECT_CALL +
96  ['--gmock_catch_leaked_mocks=1'],
97  env=environ).exit_code)
98 
def testCatchesLeakedMockWhenEnabledWithExplictFlagValue(self)
def gmock_leak_test.GMockLeakTest.testCatchesLeakedMockWhenEnabledWithExplictFlagValue (   self)

Definition at line 92 of file gmock_leak_test.py.

References gmock_test_utils.Subprocess, and gmock_leak_test.GMockLeakTest.testCatchesLeakedMockWhenEnabledWithExplictFlagValue().

93  self.assertNotEqual(
94  0,
95  gmock_test_utils.Subprocess(TEST_WITH_EXPECT_CALL +
96  ['--gmock_catch_leaked_mocks=1'],
97  env=environ).exit_code)
98 
def testCatchesLeakedMockWhenEnabledWithExplictFlagValue(self)
def gmock_leak_test.GMockLeakTest.testCatchesLeakedMockWhenEnabledWithExplictFlagValue (   self)

Definition at line 92 of file gmock_leak_test.py.

References gmock_test_utils.Subprocess, and gmock_leak_test.GMockLeakTest.testCatchesLeakedMockWhenEnabledWithExplictFlagValue().

93  self.assertNotEqual(
94  0,
95  gmock_test_utils.Subprocess(TEST_WITH_EXPECT_CALL +
96  ['--gmock_catch_leaked_mocks=1'],
97  env=environ).exit_code)
98 
def testCatchesLeakedMockWhenEnabledWithExplictFlagValue(self)
def gmock_leak_test.GMockLeakTest.testCatchesMultipleLeakedMocks (   self)

Definition at line 99 of file gmock_leak_test.py.

References gmock_test_utils.Main(), gmock_test_utils.Subprocess, and gmock_leak_test.GMockLeakTest.testCatchesMultipleLeakedMocks().

100  self.assertNotEqual(
101  0,
102  gmock_test_utils.Subprocess(TEST_MULTIPLE_LEAKS +
103  ['--gmock_catch_leaked_mocks'],
104  env=environ).exit_code)
105 
106 
def gmock_leak_test.GMockLeakTest.testCatchesMultipleLeakedMocks (   self)

Definition at line 99 of file gmock_leak_test.py.

References gmock_test_utils.Main(), gmock_test_utils.Subprocess, and gmock_leak_test.GMockLeakTest.testCatchesMultipleLeakedMocks().

100  self.assertNotEqual(
101  0,
102  gmock_test_utils.Subprocess(TEST_MULTIPLE_LEAKS +
103  ['--gmock_catch_leaked_mocks'],
104  env=environ).exit_code)
105 
106 
def gmock_leak_test.GMockLeakTest.testCatchesMultipleLeakedMocks (   self)

Definition at line 99 of file gmock_leak_test.py.

References gmock_test_utils.Main(), and gmock_test_utils.Subprocess.

Referenced by gmock_leak_test.GMockLeakTest.testCatchesMultipleLeakedMocks().

100  self.assertNotEqual(
101  0,
102  gmock_test_utils.Subprocess(TEST_MULTIPLE_LEAKS +
103  ['--gmock_catch_leaked_mocks'],
104  env=environ).exit_code)
105 
106 
def gmock_leak_test.GMockLeakTest.testDoesNotCatchLeakedMockWhenDisabled (   self)

Definition at line 68 of file gmock_leak_test.py.

References gmock_test_utils.Subprocess, and gmock_leak_test.GMockLeakTest.testDoesNotCatchLeakedMockWhenDisabled().

69  self.assertEquals(
70  0,
71  gmock_test_utils.Subprocess(TEST_WITH_EXPECT_CALL +
72  ['--gmock_catch_leaked_mocks=0'],
73  env=environ).exit_code)
74  self.assertEquals(
75  0,
76  gmock_test_utils.Subprocess(TEST_WITH_ON_CALL +
77  ['--gmock_catch_leaked_mocks=0'],
78  env=environ).exit_code)
79 
def testDoesNotCatchLeakedMockWhenDisabled(self)
def gmock_leak_test.GMockLeakTest.testDoesNotCatchLeakedMockWhenDisabled (   self)

Definition at line 68 of file gmock_leak_test.py.

References gmock_test_utils.Subprocess.

Referenced by gmock_leak_test.GMockLeakTest.testDoesNotCatchLeakedMockWhenDisabled().

69  self.assertEquals(
70  0,
71  gmock_test_utils.Subprocess(TEST_WITH_EXPECT_CALL +
72  ['--gmock_catch_leaked_mocks=0'],
73  env=environ).exit_code)
74  self.assertEquals(
75  0,
76  gmock_test_utils.Subprocess(TEST_WITH_ON_CALL +
77  ['--gmock_catch_leaked_mocks=0'],
78  env=environ).exit_code)
79 
def testDoesNotCatchLeakedMockWhenDisabled(self)
def gmock_leak_test.GMockLeakTest.testDoesNotCatchLeakedMockWhenDisabled (   self)

Definition at line 68 of file gmock_leak_test.py.

References gmock_test_utils.Subprocess, and gmock_leak_test.GMockLeakTest.testDoesNotCatchLeakedMockWhenDisabled().

69  self.assertEquals(
70  0,
71  gmock_test_utils.Subprocess(TEST_WITH_EXPECT_CALL +
72  ['--gmock_catch_leaked_mocks=0'],
73  env=environ).exit_code)
74  self.assertEquals(
75  0,
76  gmock_test_utils.Subprocess(TEST_WITH_ON_CALL +
77  ['--gmock_catch_leaked_mocks=0'],
78  env=environ).exit_code)
79 
def testDoesNotCatchLeakedMockWhenDisabled(self)

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