renames hashKind to Kind on unit test
This commit is contained in:
parent
40b64eda79
commit
139dd89622
@ -12,15 +12,15 @@ import (
|
|||||||
func TestNewImageHash(t *testing.T) {
|
func TestNewImageHash(t *testing.T) {
|
||||||
for _, tt := range []struct {
|
for _, tt := range []struct {
|
||||||
datas [][]uint8
|
datas [][]uint8
|
||||||
hash1 hashKind
|
hash1 Kind
|
||||||
hash2 hashKind
|
hash2 Kind
|
||||||
distance int
|
distance int
|
||||||
err error
|
err error
|
||||||
}{
|
}{
|
||||||
{[][]uint8{{1, 0, 1, 1}, {0, 0, 0, 0}}, Unknown, Unknown, 3, nil},
|
{[][]uint8{{1, 0, 1, 1}, {0, 0, 0, 0}}, Unknown, Unknown, 3, nil},
|
||||||
{[][]uint8{{0, 0, 0, 0}, {0, 0, 0, 0}}, Unknown, Unknown, 0, nil},
|
{[][]uint8{{0, 0, 0, 0}, {0, 0, 0, 0}}, Unknown, Unknown, 0, nil},
|
||||||
{[][]uint8{{0, 0, 0, 0}, {0, 0, 0, 1}}, Unknown, Unknown, 1, nil},
|
{[][]uint8{{0, 0, 0, 0}, {0, 0, 0, 1}}, Unknown, Unknown, 1, nil},
|
||||||
{[][]uint8{{0, 0, 0, 0}, {0, 0, 0, 1}}, Unknown, AHash, -1, errors.New("Image hashes's kind should be identical.")},
|
{[][]uint8{{0, 0, 0, 0}, {0, 0, 0, 1}}, Unknown, AHash, -1, errors.New("Image hashes's kind should be identical")},
|
||||||
} {
|
} {
|
||||||
data1 := tt.datas[0]
|
data1 := tt.datas[0]
|
||||||
data2 := tt.datas[1]
|
data2 := tt.datas[1]
|
||||||
|
Loading…
Reference in New Issue
Block a user