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

Function TestSmartPoolNotAcceptSolution

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

Source from the content-addressed store, hash-verified

64}
65
66func TestSmartPoolNotAcceptSolution(t *testing.T) {
67 sp := newTestSmartPool()
68 sp.LatestCounter = big.NewInt(10)
69 if sp.AcceptSolution(&testSolution{Counter: big.NewInt(9)}) {
70 t.Fail()
71 }
72}
73
74func TestSmartPoolPackageAllCurrentShares(t *testing.T) {
75 sp := newTestSmartPool()

Callers

nothing calls this directly

Calls 2

newTestSmartPoolFunction · 0.85
AcceptSolutionMethod · 0.65

Tested by

no test coverage detected