forked from mirror/ants
🎲Add more test cases for new code
This commit is contained in:
parent
51c0008356
commit
9cfc9fa643
|
@ -480,4 +480,8 @@ func TestRestCodeCoverage(t *testing.T) {
|
||||||
ppremWithFunc.Tune(TestSize / 10)
|
ppremWithFunc.Tune(TestSize / 10)
|
||||||
t.Logf("pre-malloc pool with func, after tuning capacity, capacity:%d, running:%d", ppremWithFunc.Cap(),
|
t.Logf("pre-malloc pool with func, after tuning capacity, capacity:%d, running:%d", ppremWithFunc.Cap(),
|
||||||
ppremWithFunc.Running())
|
ppremWithFunc.Running())
|
||||||
|
|
||||||
|
// Test for "goto"
|
||||||
|
p0.Submit(demoFunc)
|
||||||
|
p.Invoke(Param)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue