(context, kind, params_1, params_2, types_map_1, types_map_2, depth, errors, reverse)
| 122 | |
| 123 | |
| 124 | def compare_params_list(context, kind, params_1, params_2, types_map_1, types_map_2, depth, errors, reverse): |
| 125 | for name in params_1: |
| 126 | param_1 = params_1[name] |
| 127 | if name not in params_2: |
| 128 | if "optional" not in param_1: |
| 129 | errors.append("%s.%s: required %s has been %s" % (context, name, kind, removed(reverse))) |
| 130 | continue |
| 131 | |
| 132 | param_2 = params_2[name] |
| 133 | if param_2 and "optional" in param_2 and "optional" not in param_1: |
| 134 | errors.append("%s.%s: %s %s is now %s" % (context, name, required(reverse), kind, required(not reverse))) |
| 135 | continue |
| 136 | type_1 = extract_type(param_1, types_map_1, errors) |
| 137 | type_2 = extract_type(param_2, types_map_2, errors) |
| 138 | compare_types(context + "." + name, kind, type_1, type_2, types_map_1, types_map_2, depth, errors, reverse) |
| 139 | |
| 140 | |
| 141 | def compare_types(context, kind, type_1, type_2, types_map_1, types_map_2, depth, errors, reverse): |
no test coverage detected