2017-09-22 13:47:15 +02:00
|
|
|
// Copyright (C) 2017 ScyllaDB
|
|
|
|
|
// Use of this source code is governed by a ALv2-style
|
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
|
|
package migrate
|
|
|
|
|
|
2021-04-29 18:19:32 +02:00
|
|
|
import (
|
|
|
|
|
"os"
|
|
|
|
|
"testing"
|
|
|
|
|
)
|
2017-09-22 13:47:15 +02:00
|
|
|
|
|
|
|
|
func TestFileChecksum(t *testing.T) {
|
2021-04-29 18:19:32 +02:00
|
|
|
c, err := fileChecksum(os.DirFS("testdata"), "file")
|
2017-09-22 13:47:15 +02:00
|
|
|
if err != nil {
|
|
|
|
|
t.Fatal(err)
|
|
|
|
|
}
|
|
|
|
|
if c != "bbe02f946d5455d74616fc9777557c22" {
|
|
|
|
|
t.Fatal(c)
|
|
|
|
|
}
|
|
|
|
|
}
|