Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(595)

Side by Side Diff: tools/telemetry/third_party/coverage/tests/farm/html/src/b.py

Issue 1366913004: Add coverage Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 # Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
2 # For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
3
4 # A test file for HTML reporting by coverage.py.
5
6 def one(x):
7 # This will be a branch that misses the else.
8 if x < 2:
9 a = 3
10 else:
11 a = 4
12
13 one(1)
14
15 def two(x):
16 # A missed else that branches to "exit"
17 if x:
18 a = 5
19
20 two(1)
21
22 def three():
23 try:
24 # This if has two branches, *neither* one taken.
25 if name_error_this_variable_doesnt_exist:
26 a = 1
27 else:
28 a = 2
29 except:
30 pass
31
32 three()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698