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

Function TestClaimAddShare

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

Source from the content-addressed store, hash-verified

40}
41
42func TestClaimAddShare(t *testing.T) {
43 s := NewClaim()
44 s.AddShare(&testShare{big.NewInt(10), big.NewInt(10), 0})
45 if s.NumShares().Int64() != 1 {
46 t.Fail()
47 }
48}
49
50func TestClaimDifficultyReturnMinDifficultyOfItsShares(t *testing.T) {
51 s := &Claim{newTestShares(), nil, nil, nil}

Callers

nothing calls this directly

Calls 3

AddShareMethod · 0.95
NumSharesMethod · 0.95
NewClaimFunction · 0.85

Tested by

no test coverage detected