Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
PRESUBMIT.py
Go to the documentation of this file.
1
# Copyright 2019 The PDFium Authors
2
# Use of this source code is governed by a BSD-style license that can be
3
# found in the LICENSE file.
4
5
"""Presubmit script for PDFium testing tools.
6
7
See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts
8
for more details on the presubmit API built into depot_tools.
9
"""
10
11
USE_PYTHON3 =
True
12
13
14
def
_CommonChecks
(input_api, output_api):
15
tests = []
16
tests.extend(
17
input_api.canned_checks.GetPylint(input_api, output_api, version=
'2.7'
))
18
return
tests
19
20
21
def
CheckChangeOnUpload
(input_api, output_api):
22
tests = []
23
tests.extend(
_CommonChecks
(input_api, output_api))
24
return
input_api.RunTests(tests)
25
26
27
def
CheckChangeOnCommit
(input_api, output_api):
28
tests = []
29
tests.extend(
_CommonChecks
(input_api, output_api))
30
return
input_api.RunTests(tests)
testing.tools.PRESUBMIT.CheckChangeOnCommit
CheckChangeOnCommit(input_api, output_api)
Definition
PRESUBMIT.py:27
testing.tools.PRESUBMIT._CommonChecks
_CommonChecks(input_api, output_api)
Definition
PRESUBMIT.py:14
testing.tools.PRESUBMIT.CheckChangeOnUpload
CheckChangeOnUpload(input_api, output_api)
Definition
PRESUBMIT.py:21
qtwebengine
src
3rdparty
chromium
third_party
pdfium
testing
tools
PRESUBMIT.py
Generated on Thu Nov 14 2024 01:10:18 for Qt by
1.12.0