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

Function TestWorkPoolAddWorkByItsID

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

Source from the content-addressed store, hash-verified

49}
50
51func TestWorkPoolAddWorkByItsID(t *testing.T) {
52 wp := WorkPool{}
53 w := newTestWork()
54 wp.AddWork(w)
55 if wp[w.ID()] == nil {
56 t.Fail()
57 }
58}

Callers

nothing calls this directly

Calls 3

AddWorkMethod · 0.95
newTestWorkFunction · 0.85
IDMethod · 0.65

Tested by

no test coverage detected