MCPcopy Index your code
hub / github.com/SmartPool/smartpool-client / TestSmartPoolAcceptSolution

Function TestSmartPoolAcceptSolution

protocol/smartpool_test.go:59–64  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

57}
58
59func TestSmartPoolAcceptSolution(t *testing.T) {
60 sp := newTestSmartPool()
61 if !sp.AcceptSolution(&testSolution{Counter: big.NewInt(10)}) {
62 t.Fail()
63 }
64}
65
66func TestSmartPoolNotAcceptSolution(t *testing.T) {
67 sp := newTestSmartPool()

Callers

nothing calls this directly

Calls 2

newTestSmartPoolFunction · 0.85
AcceptSolutionMethod · 0.65

Tested by

no test coverage detected