(t *testing.T)
| 30 | } |
| 31 | |
| 32 | func TestWorkPoolAcceptSolution(t *testing.T) { |
| 33 | w := newTestWork() |
| 34 | s := newTestSolution() |
| 35 | wp := WorkPool{ |
| 36 | w.ID(): w, |
| 37 | } |
| 38 | if wp.AcceptSolution(s) == nil { |
| 39 | t.Fail() |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | func TestWorkPoolDoesntAcceptSolution(t *testing.T) { |
| 44 | wp := WorkPool{} |
nothing calls this directly
no test coverage detected