mirror of
https://github.com/planetmint/planetmint-go.git
synced 2025-03-30 15:08:28 +00:00

This is the quasi-standard and fixes the error below: ``` $ go get -u github.com/planetmint/planetmint-go@v0.1.0 go: github.com/planetmint/planetmint-go@v0.1.0: parsing go.mod: module declares its path as: planetmint-go but was required as: github.com/planetmint/planetmint-go ``` Signed-off-by: Julian Strobl <jmastr@mailbox.org>
30 lines
741 B
Go
30 lines
741 B
Go
package asset_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
keepertest "github.com/planetmint/planetmint-go/testutil/keeper"
|
|
"github.com/planetmint/planetmint-go/testutil/nullify"
|
|
"github.com/planetmint/planetmint-go/x/asset"
|
|
"github.com/planetmint/planetmint-go/x/asset/types"
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestGenesis(t *testing.T) {
|
|
genesisState := types.GenesisState{
|
|
Params: types.DefaultParams(),
|
|
|
|
// this line is used by starport scaffolding # genesis/test/state
|
|
}
|
|
|
|
k, ctx := keepertest.AssetKeeper(t)
|
|
asset.InitGenesis(ctx, *k, genesisState)
|
|
got := asset.ExportGenesis(ctx, *k)
|
|
require.NotNil(t, got)
|
|
|
|
nullify.Fill(&genesisState)
|
|
nullify.Fill(got)
|
|
|
|
// this line is used by starport scaffolding # genesis/test/assert
|
|
}
|