1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-02-07 13:31:37 +02:00
goreleaser/internal/gio/hash_test.go
Drew Stinnett d4e575dd47
test: additional tests for gitlab and others (#2599)
* More checks

* test: Adding more tests around gitlab

* chore: removing log
2021-10-25 10:29:19 -03:00

23 lines
403 B
Go

package gio
import (
"testing"
"github.com/stretchr/testify/require"
)
func TestEqualFilesError(t *testing.T) {
tests := []struct {
a string
b string
}{
{"./testdata/nope.txt", "./testdata/somefile.txt"},
{"./testdata/somefile.txt", "./testdata/nope.txt"},
}
for _, test := range tests {
equal, err := EqualFiles(test.a, test.b)
require.Error(t, err)
require.False(t, equal)
}
}