mirror of
https://github.com/mxpv/podsync.git
synced 2024-05-11 05:55:04 +00:00
20 lines
307 B
Go
20 lines
307 B
Go
package id
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/mxpv/podsync/pkg/api"
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestEncode(t *testing.T) {
|
|
hid, err := NewIdGenerator()
|
|
require.NoError(t, err)
|
|
|
|
feed := &api.Feed{}
|
|
|
|
hash, err := hid.Generate(feed)
|
|
require.NoError(t, err)
|
|
require.NotEmpty(t, hash)
|
|
}
|