From 1add213d65ce2d12aa3842ceb2a37f9c8d3db9f3 Mon Sep 17 00:00:00 2001 From: Bryan White Date: Wed, 29 Jan 2025 16:41:20 +0100 Subject: [PATCH] chore: comments --- testutil/testmigration/fixtures.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/testutil/testmigration/fixtures.go b/testutil/testmigration/fixtures.go index e360f593d..fb36d92ba 100644 --- a/testutil/testmigration/fixtures.go +++ b/testutil/testmigration/fixtures.go @@ -15,7 +15,10 @@ import ( migrationtypes "github.com/pokt-network/poktroll/x/migration/types" ) -// TODO_IN_THIS_COMMIT: godoc... +// NewMorseStateExportAndAccountStateBytes returns a serialized `MorseStateExport` +// and its corresponding `MorseAccountState`, populated dynamically with randomized +// account addresses, and monotonically increasing balances/stakes. For each account, +// one application and supplier are also added to the states. // TODO_CONSIDERATION: Test/benchmark execution speed can be optimized by refactoring this to a pre-generate fixture. func NewMorseStateExportAndAccountStateBytes( t gocuke.TestingT, @@ -33,7 +36,10 @@ func NewMorseStateExportAndAccountStateBytes( return morseStateExportBz, morseAccountStateBz } -// TODO_IN_THIS_COMMIT: godoc... +// NewMorseStateExportAndAccountState returns a `MorseStateExport` and its +// corresponding `MorseAccountState`, populated dynamically with randomized +// account addresses, and monotonically increasing balances/stakes. For each account, +// one application and supplier are also added to the states. func NewMorseStateExportAndAccountState( t gocuke.TestingT, numAccounts int, ) (export *migrationtypes.MorseStateExport, state *migrationtypes.MorseAccountState) {