(node *ast.Node)
| 17 | } |
| 18 | |
| 19 | func (c *countingPatcher) Visit(node *ast.Node) { |
| 20 | switch (*node).(type) { |
| 21 | case *ast.IntegerNode: |
| 22 | c.PatchCount++ |
| 23 | } |
| 24 | } |
| 25 | |
| 26 | // Test over a simple expression |
| 27 | func TestPatch_Count(t *testing.T) { |
nothing calls this directly
no outgoing calls
no test coverage detected