MCPcopy
hub / github.com/robfig/cron / appendingWrapper

Function appendingWrapper

chain_test.go:21–28  ·  chain_test.go::appendingWrapper
(slice *[]int, value int)

Source from the content-addressed store, hash-verified

19}
20
21func appendingWrapper(slice *[]int, value int) JobWrapper {
22 return func(j Job) Job {
23 return FuncJob(func() {
24 appendingJob(slice, value).Run()
25 j.Run()
26 })
27 }
28}
29
30func TestChain(t *testing.T) {
31 var nums []int

Callers 1

TestChainFunction · 0.85

Calls 3

FuncJobFuncType · 0.85
appendingJobFunction · 0.85
RunMethod · 0.65

Tested by

no test coverage detected