(test *testing.T)
| 146 | } |
| 147 | |
| 148 | func TestPublicRecoveryDeleteFail(test *testing.T) { |
| 149 | n := 10 |
| 150 | t := n/2 + 1 |
| 151 | |
| 152 | priPoly := NewPriPoly(suite, t, nil, suite.RandomStream()) |
| 153 | pubPoly := priPoly.Commit(nil) |
| 154 | shares := pubPoly.Shares(n) |
| 155 | |
| 156 | // Corrupt one more share than acceptable |
| 157 | shares[1] = nil |
| 158 | shares[2] = nil |
| 159 | shares[5] = nil |
| 160 | shares[7] = nil |
| 161 | shares[8] = nil |
| 162 | |
| 163 | _, err := RecoverCommit(suite, shares, t, n) |
| 164 | if err == nil { |
| 165 | test.Fatal("recovered commit unexpectably") |
| 166 | } |
| 167 | } |
| 168 | |
| 169 | func TestPrivateAdd(test *testing.T) { |
| 170 | n := 10 |
nothing calls this directly
no test coverage detected