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

Function newTestShares

protocol/claim_test.go:11–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9)
10
11func newTestShares() Shares {
12 return Shares{
13 &testShare{c: big.NewInt(10), d: big.NewInt(10), h: 1},
14 &testShare{c: big.NewInt(1), d: big.NewInt(4), h: 2},
15 &testShare{c: big.NewInt(5), d: big.NewInt(5), h: 3},
16 &testShare{c: big.NewInt(8), d: big.NewInt(9), h: 4},
17 }
18}
19
20func TestSharesSortSharesAscendingCounter(t *testing.T) {
21 s := newTestShares()

Calls

no outgoing calls

Tested by

no test coverage detected