Add 'dimension' into 'self.dimensions' and memorize the name. During vector generation, all dimensions registered through this method will be embedded into 'exec_option' dimension. This is intended to maintain pairwise and exhaustive combination correct while eliminating the need fo
(self, dimension)
| 186 | vector.value[key] = value |
| 187 | |
| 188 | def add_exec_option_dimension(self, dimension): |
| 189 | """ |
| 190 | Add 'dimension' into 'self.dimensions' and memorize the name. |
| 191 | During vector generation, all dimensions registered through this method will be |
| 192 | embedded into 'exec_option' dimension. This is intended to maintain pairwise and |
| 193 | exhaustive combination correct while eliminating the need for individual test method |
| 194 | to append the custom exec options into 'exec_option' dimension themself. |
| 195 | """ |
| 196 | self.assert_unique_exec_option_key(dimension.name) |
| 197 | assert len(dimension) > 1, ( |
| 198 | "Dimension " + dimension.name + " must have more than 1 possible value! " |
| 199 | "Use add_mandatory_exec_option() instead.") |
| 200 | |
| 201 | self.add_dimension(dimension) |
| 202 | self.independent_exec_option_names.add(dimension.name) |
| 203 | |
| 204 | def clear(self): |
| 205 | self.dimensions.clear() |
no test coverage detected