1
// Copyright 2011 The Go Authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style
3
// license that can be found in the LICENSE file.
8
addTestCases(hashSumTests, hashSumFn)
11
var hashSumTests = []testCase{
16
import "crypto/sha256"
25
import "crypto/sha256"
38
func f(h hash.Hash) []byte {
44
func f(h hash.Hash) []byte {
54
import "crypto/sha256"
58
h.Write([]byte("foo"))
64
import "crypto/sha256"
68
h.Write([]byte("foo"))
78
import _ "crypto/sha256"
82
hashType := crypto.SHA256
89
import _ "crypto/sha256"
93
hashType := crypto.SHA256