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

Function TestClaimNumSharesReturnsNumberOfShare

protocol/claim_test.go:30–40  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

28}
29
30func TestClaimNumSharesReturnsNumberOfShare(t *testing.T) {
31 s := &Claim{Shares{
32 &testShare{big.NewInt(10), big.NewInt(10), 0}},
33 nil,
34 nil,
35 nil,
36 }
37 if s.NumShares().Int64() != 1 {
38 t.Fail()
39 }
40}
41
42func TestClaimAddShare(t *testing.T) {
43 s := NewClaim()

Callers

nothing calls this directly

Calls 1

NumSharesMethod · 0.95

Tested by

no test coverage detected