Represents an intermediate node that has children that are all variants of each other
| 435 | |
| 436 | |
| 437 | class VariantConfig(GraphConfig): |
| 438 | """Represents an intermediate node that has children that are all |
| 439 | variants of each other""" |
| 440 | |
| 441 | def __init__(self, suite, parent, arch): |
| 442 | super(VariantConfig, self).__init__(suite, parent, arch) |
| 443 | assert "variants" in suite |
| 444 | for variant in suite.get('variants'): |
| 445 | assert "variants" not in variant, \ |
| 446 | "Cannot directly nest variants:" + str(variant)[:100] |
| 447 | assert "name" in variant, \ |
| 448 | "Variant must have 'name' property: " + str(variant)[:100] |
| 449 | assert len(variant) >= 2, \ |
| 450 | "Variant must define other properties than 'name': " + str(variant) |
| 451 | |
| 452 | |
| 453 | class LeafTraceConfig(GraphConfig): |
no outgoing calls
no test coverage detected
searching dependent graphs…