Skips items that the target stacktrace shares with the base stacktrace.
(stacktrace, base_case)
| 232 | |
| 233 | |
| 234 | def _skip_common_stack_elements(stacktrace, base_case): |
| 235 | """Skips items that the target stacktrace shares with the base stacktrace.""" |
| 236 | for i, (trace, base) in enumerate(zip(stacktrace, base_case)): |
| 237 | if trace != base: |
| 238 | return stacktrace[i:] |
| 239 | return stacktrace[-1:] |
| 240 | |
| 241 | |
| 242 | class Template(trackable.Trackable): |
no outgoing calls
no test coverage detected