()
| 19 | } |
| 20 | |
| 21 | func ExampleBefore() { |
| 22 | fn := Before(2, func() { |
| 23 | fmt.Println("test") |
| 24 | }) |
| 25 | |
| 26 | fn() |
| 27 | fn() |
| 28 | fn() |
| 29 | fn() |
| 30 | |
| 31 | // Output: |
| 32 | // test |
| 33 | // test |
| 34 | } |
| 35 | |
| 36 | func ExampleCurryFn_New() { |
| 37 | add := func(a, b int) int { |
nothing calls this directly
no test coverage detected
searching dependent graphs…