Flutter Engine
The Flutter Engine
|
Public Member Functions | |
def | __init__ (self, local_path, new_contents, old_contents=None, action='A', scm_diff=None) |
def | Action (self) |
def | ChangedContents (self) |
def | NewContents (self) |
def | LocalPath (self) |
def | AbsoluteLocalPath (self) |
def | GenerateScmDiff (self) |
def | OldContents (self) |
def | rfind (self, p) |
def | __getitem__ (self, i) |
def | __len__ (self) |
def | replace (self, altsep, sep) |
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 198 of file PRESUBMIT_test_mocks.py.
def PRESUBMIT_test_mocks.MockFile.__init__ | ( | self, | |
local_path, | |||
new_contents, | |||
old_contents = None , |
|||
action = 'A' , |
|||
scm_diff = None |
|||
) |
Definition at line 205 of file PRESUBMIT_test_mocks.py.
def PRESUBMIT_test_mocks.MockFile.__getitem__ | ( | self, | |
i | |||
) |
os.path.basename is called on MockFile so we need a get method.
Definition at line 247 of file PRESUBMIT_test_mocks.py.
def PRESUBMIT_test_mocks.MockFile.__len__ | ( | self | ) |
os.path.basename is called on MockFile so we need a len method.
Definition at line 251 of file PRESUBMIT_test_mocks.py.
def PRESUBMIT_test_mocks.MockFile.AbsoluteLocalPath | ( | self | ) |
Reimplemented in PRESUBMIT_test_mocks.MockAffectedFile.
Definition at line 234 of file PRESUBMIT_test_mocks.py.
def PRESUBMIT_test_mocks.MockFile.Action | ( | self | ) |
Definition at line 222 of file PRESUBMIT_test_mocks.py.
def PRESUBMIT_test_mocks.MockFile.ChangedContents | ( | self | ) |
Definition at line 225 of file PRESUBMIT_test_mocks.py.
def PRESUBMIT_test_mocks.MockFile.GenerateScmDiff | ( | self | ) |
Definition at line 237 of file PRESUBMIT_test_mocks.py.
def PRESUBMIT_test_mocks.MockFile.LocalPath | ( | self | ) |
Definition at line 231 of file PRESUBMIT_test_mocks.py.
def PRESUBMIT_test_mocks.MockFile.NewContents | ( | self | ) |
Definition at line 228 of file PRESUBMIT_test_mocks.py.
def PRESUBMIT_test_mocks.MockFile.OldContents | ( | self | ) |
Definition at line 240 of file PRESUBMIT_test_mocks.py.
def PRESUBMIT_test_mocks.MockFile.replace | ( | self, | |
altsep, | |||
sep | |||
) |
os.path.basename is called on MockFile so we need a replace method.
Definition at line 255 of file PRESUBMIT_test_mocks.py.
def PRESUBMIT_test_mocks.MockFile.rfind | ( | self, | |
p | |||
) |
os.path.basename is called on MockFile so we need an rfind method.
Definition at line 243 of file PRESUBMIT_test_mocks.py.