This patcher tracks how many nodes it patches which can be used to verify if it was run too many times or not at all
| 13 | // This patcher tracks how many nodes it patches which can |
| 14 | // be used to verify if it was run too many times or not at all |
| 15 | type countingPatcher struct { |
| 16 | PatchCount int |
| 17 | } |
| 18 | |
| 19 | func (c *countingPatcher) Visit(node *ast.Node) { |
| 20 | switch (*node).(type) { |
nothing calls this directly
no outgoing calls
no test coverage detected