MCPcopy Create free account
hub / github.com/SmartPool/smartpool-client / TestWorkPoolAcceptSolution

Function TestWorkPoolAcceptSolution

ethereum/work_pool_test.go:32–41  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

30}
31
32func 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
43func TestWorkPoolDoesntAcceptSolution(t *testing.T) {
44 wp := WorkPool{}

Callers

nothing calls this directly

Calls 4

AcceptSolutionMethod · 0.95
newTestWorkFunction · 0.85
newTestSolutionFunction · 0.85
IDMethod · 0.65

Tested by

no test coverage detected