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

Function TestSmartPoolGetCorrectShareIndex

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

Source from the content-addressed store, hash-verified

121}
122
123func TestSmartPoolGetCorrectShareIndex(t *testing.T) {
124 sp := newTestSmartPool()
125 sp.ShareThreshold = 1
126 sp.AcceptSolution(&testSolution{Counter: big.NewInt(9)})
127 sp.Submit()
128 c := sp.Contract.(*testContract)
129 if c.IndexRequestedTime == nil {
130 t.Fail()
131 }
132}
133
134func TestSmartPoolGetCorrectShareIndexAfterSubmitClaim(t *testing.T) {
135 sp := newTestSmartPool()

Callers

nothing calls this directly

Calls 3

newTestSmartPoolFunction · 0.85
SubmitMethod · 0.80
AcceptSolutionMethod · 0.65

Tested by

no test coverage detected