bitxhub/internal/repo/repo_test.go

15 lines
271 B
Go

package repo
import (
"testing"
"github.com/magiconair/properties/assert"
)
func TestGetStoragePath(t *testing.T) {
p := GetStoragePath("/data", "order")
assert.Equal(t, p, "/data/storage/order")
p = GetStoragePath("/data")
assert.Equal(t, p, "/data/storage")
}