(self, error_msg, search_in, feature_name, feature_dict)
| 125 | raise AssertionError(error_msg + "implies non-exist feature '%s'" % impl) |
| 126 | |
| 127 | def test_group(self, error_msg, search_in, feature_name, feature_dict): |
| 128 | if feature_dict.get("disabled") is not None: |
| 129 | return |
| 130 | group = feature_dict.get("group", "") |
| 131 | if not group: |
| 132 | return |
| 133 | if isinstance(group, str): |
| 134 | group = group.split() |
| 135 | |
| 136 | for f in group: |
| 137 | impl_dict = search_in.get(f) |
| 138 | if not impl_dict or "disable" in impl_dict: |
| 139 | continue |
| 140 | raise AssertionError(error_msg + |
| 141 | "in option 'group', '%s' already exists as a feature name" % f |
| 142 | ) |
| 143 | |
| 144 | def test_extra_checks(self, error_msg, search_in, feature_name, feature_dict): |
| 145 | if feature_dict.get("disabled") is not None: |
no test coverage detected