(pattern)
| 195 | |
| 196 | |
| 197 | def ParsePattern(pattern): |
| 198 | # create json template |
| 199 | json_tmp = {"type": "path", "stack": []} |
| 200 | |
| 201 | items = pattern.split("/") |
| 202 | for item in items: |
| 203 | stack = ParseFields(item) |
| 204 | if stack == None: |
| 205 | return None |
| 206 | json_tmp["stack"].append(stack) |
| 207 | |
| 208 | return json_tmp |
no test coverage detected