Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
Public Member Functions | |
__init__ (self, local_path, new_contents=None, old_contents=None, action='A') | |
ChangedContents (self) | |
LocalPath (self) | |
Protected Attributes | |
_local_path = local_path | |
_new_contents = new_contents | |
list | _changed_contents = [(i + 1, l) for i, l in enumerate(new_contents)] |
_action = action | |
_old_contents = old_contents | |
Mock class for the File class. This class can be used to form the mock list of changed files in MockInputApi for presubmit unittests.
Definition at line 54 of file PRESUBMIT_test_mocks.py.
PRESUBMIT_test_mocks.MockFile.__init__ | ( | self, | |
local_path, | |||
new_contents = None, | |||
old_contents = None, | |||
action = 'A' ) |
Definition at line 61 of file PRESUBMIT_test_mocks.py.
PRESUBMIT_test_mocks.MockFile.ChangedContents | ( | self | ) |
Definition at line 74 of file PRESUBMIT_test_mocks.py.
References PRESUBMIT_test_mocks.MockFile._changed_contents.
PRESUBMIT_test_mocks.MockFile.LocalPath | ( | self | ) |
Definition at line 77 of file PRESUBMIT_test_mocks.py.
References PRESUBMIT_test_mocks.MockFile._local_path.
|
protected |
Definition at line 71 of file PRESUBMIT_test_mocks.py.
|
protected |
Definition at line 70 of file PRESUBMIT_test_mocks.py.
Referenced by PRESUBMIT_test_mocks.MockFile.ChangedContents().
|
protected |
Definition at line 66 of file PRESUBMIT_test_mocks.py.
Referenced by PRESUBMIT_test_mocks.MockFile.LocalPath().
|
protected |
Definition at line 69 of file PRESUBMIT_test_mocks.py.
|
protected |
Definition at line 72 of file PRESUBMIT_test_mocks.py.