Lines not covered in tests
10 if remainder:
11 new = create_subpattern()
12 else:
13 new = None14 for i, (tok, val) in enumerate(list(pattern.data)):
15 if not found and tok == sre_parse.LITERAL and val == ord(at):
16 found = True
Lines not covered in tests
130 if type_a is list:
131 for i, val in enumerate(a):
132 if not _val_eq(val, b[i]):
133 return False134 return True
135
136 assert type_a == tuple, type_a
Lines not covered in tests
122 types_a = [type(i) for i in a]
123 types_b = [type(i) for i in b]
124 if types_a != types_b:
125 if types_a[:-1] == types_b[:-1]:126 return _val_eq(a[-1], b[-1])127128 return False129
130 if type_a is list:
131 for i, val in enumerate(a):
Lines not covered in tests
117
118 length = len(a)
119 if length != len(b):
120 return False121
122 types_a = [type(i) for i in a]
123 types_b = [type(i) for i in b]
Lines not covered in tests
110 return _val_eq(b, a)
111
112 if type_a != type_b:
113 return False114
115 if type_a in [int, _NamedIntConstant]:
116 return a == b
Lines not covered in tests
107 assert type_b == list
108 return _val_eq(a.data, b)
109 elif type_b == SubPattern:
110 return _val_eq(b, a)111
112 if type_a != type_b:
113 return False
Lines not covered in tests
89
90 elif tok == SUBPATTERN:
91 if val_a[0:3] != val_b[0:3]:
92 return False 93 return _val_eq(val_a[-1], val_b[-1])
94
95 return _val_eq(a[1], b[1])
Lines not covered in tests
83 val_b = b[1]
84
85 if tok == MAX_REPEAT:
86 if val_a[0:2] != val_b[0:2]: 87 return False 88 return _val_eq(val_a[-1], val_b[-1]) 89
90 elif tok == SUBPATTERN:
91 if val_a[0:3] != val_b[0:3]:
Lines not covered in tests
77def _pair_eq(a, b):
78 tok = a[0]
79 if tok != b[0]:
80 return False 81
82 val_a = a[1]
83 val_b = b[1]
Lines not covered in tests
56 if val[0] != MAXREPEAT and val[1] != MAXREPEAT:
57 prev_val = val[0] + 1, val[1] + 1, val[2]
58 else:
59 prev_val = val[0], val[1], val[2] 60
61 new[-1] = prev_tok, prev_val
62 continue
Description
A source line is considered covered when at least one instruction that is assigned to this line has been executed by a test case. These lines were not executed during any of the test cases.