File tree Expand file tree Collapse file tree 1 file changed +0
-15
lines changed
Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -188,9 +188,6 @@ func TestHashAllocations(t *testing.T) {
188188 sink ^= cng .SHA256 (msg )[0 ]
189189 sink ^= cng .SHA384 (msg )[0 ]
190190 sink ^= cng .SHA512 (msg )[0 ]
191- sink ^= cng .SumSHA3_256 (msg )[0 ]
192- sink ^= cng .SumSHA3_384 (msg )[0 ]
193- sink ^= cng .SumSHA3_512 (msg )[0 ]
194191 }))
195192 want := 0
196193 if n > want {
@@ -205,35 +202,23 @@ func TestHashStructAllocations(t *testing.T) {
205202 sha256Hash := cng .NewSHA256 ()
206203 sha384Hash := cng .NewSHA384 ()
207204 sha512Hash := cng .NewSHA512 ()
208- sha3_256 := cng .NewSHA3_256 ()
209- sha3_384 := cng .NewSHA3_384 ()
210- sha3_512 := cng .NewSHA3_512 ()
211205
212206 sum := make ([]byte , sha512Hash .Size ())
213207 n := int (testing .AllocsPerRun (10 , func () {
214208 sha1Hash .Write (msg )
215209 sha256Hash .Write (msg )
216210 sha384Hash .Write (msg )
217211 sha512Hash .Write (msg )
218- sha3_256 .Write (msg )
219- sha3_384 .Write (msg )
220- sha3_512 .Write (msg )
221212
222213 sha1Hash .Sum (sum [:0 ])
223214 sha256Hash .Sum (sum [:0 ])
224215 sha384Hash .Sum (sum [:0 ])
225216 sha512Hash .Sum (sum [:0 ])
226- sha3_256 .Sum (sum [:0 ])
227- sha3_384 .Sum (sum [:0 ])
228- sha3_512 .Sum (sum [:0 ])
229217
230218 sha1Hash .Reset ()
231219 sha256Hash .Reset ()
232220 sha384Hash .Reset ()
233221 sha512Hash .Reset ()
234- sha3_256 .Reset ()
235- sha3_384 .Reset ()
236- sha3_512 .Reset ()
237222 }))
238223 want := 0
239224 if n > want {
You can’t perform that action at this time.
0 commit comments