Flutter Engine
The Flutter Engine
|
Public Member Functions | |
def | __init__ (self) |
def | CreateMockFileInPath (self, f_list) |
def | AffectedFiles (self, file_filter=None, include_deletes=True) |
def | RightHandSideLines (self, source_file_filter=None) |
def | AffectedSourceFiles (self, file_filter=None) |
def | FilterSourceFile (self, file, files_to_check=(), files_to_skip=()) |
def | LocalPaths (self) |
def | PresubmitLocalPath (self) |
def | ReadFile (self, filename, mode='r') |
Public Attributes | |
canned_checks | |
fnmatch | |
json | |
re | |
os_path | |
platform | |
python_executable | |
python3_executable | |
subprocess | |
sys | |
files | |
is_committing | |
change | |
presubmit_local_path | |
is_windows | |
no_diffs | |
verbose | |
Static Public Attributes | |
tuple | DEFAULT_FILES_TO_SKIP = () |
Mock class for the InputApi class. This class can be used for unittests for presubmit by initializing the files attribute as the list of changed files.
Definition at line 59 of file PRESUBMIT_test_mocks.py.
def PRESUBMIT_test_mocks.MockInputApi.__init__ | ( | self | ) |
Definition at line 68 of file PRESUBMIT_test_mocks.py.
def PRESUBMIT_test_mocks.MockInputApi.AffectedFiles | ( | self, | |
file_filter = None , |
|||
include_deletes = True |
|||
) |
Definition at line 94 of file PRESUBMIT_test_mocks.py.
def PRESUBMIT_test_mocks.MockInputApi.AffectedSourceFiles | ( | self, | |
file_filter = None |
|||
) |
Definition at line 109 of file PRESUBMIT_test_mocks.py.
def PRESUBMIT_test_mocks.MockInputApi.CreateMockFileInPath | ( | self, | |
f_list | |||
) |
Definition at line 91 of file PRESUBMIT_test_mocks.py.
def PRESUBMIT_test_mocks.MockInputApi.FilterSourceFile | ( | self, | |
file, | |||
files_to_check = () , |
|||
files_to_skip = () |
|||
) |
Definition at line 112 of file PRESUBMIT_test_mocks.py.
def PRESUBMIT_test_mocks.MockInputApi.LocalPaths | ( | self | ) |
Definition at line 135 of file PRESUBMIT_test_mocks.py.
def PRESUBMIT_test_mocks.MockInputApi.PresubmitLocalPath | ( | self | ) |
Definition at line 138 of file PRESUBMIT_test_mocks.py.
def PRESUBMIT_test_mocks.MockInputApi.ReadFile | ( | self, | |
filename, | |||
mode = 'r' |
|||
) |
Definition at line 141 of file PRESUBMIT_test_mocks.py.
def PRESUBMIT_test_mocks.MockInputApi.RightHandSideLines | ( | self, | |
source_file_filter = None |
|||
) |
Definition at line 102 of file PRESUBMIT_test_mocks.py.
PRESUBMIT_test_mocks.MockInputApi.canned_checks |
Definition at line 69 of file PRESUBMIT_test_mocks.py.
PRESUBMIT_test_mocks.MockInputApi.change |
Definition at line 82 of file PRESUBMIT_test_mocks.py.
|
static |
Definition at line 66 of file PRESUBMIT_test_mocks.py.
PRESUBMIT_test_mocks.MockInputApi.files |
Definition at line 80 of file PRESUBMIT_test_mocks.py.
PRESUBMIT_test_mocks.MockInputApi.fnmatch |
Definition at line 70 of file PRESUBMIT_test_mocks.py.
PRESUBMIT_test_mocks.MockInputApi.is_committing |
Definition at line 81 of file PRESUBMIT_test_mocks.py.
PRESUBMIT_test_mocks.MockInputApi.is_windows |
Definition at line 84 of file PRESUBMIT_test_mocks.py.
PRESUBMIT_test_mocks.MockInputApi.json |
Definition at line 71 of file PRESUBMIT_test_mocks.py.
PRESUBMIT_test_mocks.MockInputApi.no_diffs |
Definition at line 85 of file PRESUBMIT_test_mocks.py.
PRESUBMIT_test_mocks.MockInputApi.os_path |
Definition at line 73 of file PRESUBMIT_test_mocks.py.
PRESUBMIT_test_mocks.MockInputApi.platform |
Definition at line 74 of file PRESUBMIT_test_mocks.py.
PRESUBMIT_test_mocks.MockInputApi.presubmit_local_path |
Definition at line 83 of file PRESUBMIT_test_mocks.py.
PRESUBMIT_test_mocks.MockInputApi.python3_executable |
Definition at line 76 of file PRESUBMIT_test_mocks.py.
PRESUBMIT_test_mocks.MockInputApi.python_executable |
Definition at line 75 of file PRESUBMIT_test_mocks.py.
PRESUBMIT_test_mocks.MockInputApi.re |
Definition at line 72 of file PRESUBMIT_test_mocks.py.
PRESUBMIT_test_mocks.MockInputApi.subprocess |
Definition at line 78 of file PRESUBMIT_test_mocks.py.
PRESUBMIT_test_mocks.MockInputApi.sys |
Definition at line 79 of file PRESUBMIT_test_mocks.py.
PRESUBMIT_test_mocks.MockInputApi.verbose |
Definition at line 89 of file PRESUBMIT_test_mocks.py.