| 12 | from MyParams.MyParam import MyParam |
| 13 | |
| 14 | class MyParamCondition(GCondition): |
| 15 | def choose(self): |
| 16 | param: MyParam = self.getGParamWithNoEmpty("param1") |
| 17 | param.lock() |
| 18 | cnt = param.count |
| 19 | param.unlock() |
| 20 | |
| 21 | relation: GElementRelation = self.getRelation() |
| 22 | return cnt % len(relation.children) |
no outgoing calls
no test coverage detected