func (suite *KeeperTestSuite) getPostsCommentsIDs(ctx sdk.Context, postID string) []string {
	store := ctx.KVStore(suite.storeKey)
	iterator := sdk.KVStorePrefixIterator(store, types.PostCommentsPrefix(postID))
	defer iterator.Close()
	commentIDs := []string{}
	for ; iterator.Valid(); iterator.Next() {
		commentID := string(iterator.Value())
		commentIDs = append(commentIDs, commentID)
	}
	return commentIDs
}
getPostsCommentsIDs returns the comments of the post having the given id
package keeper_test
import (
	sdk "github.com/cosmos/cosmos-sdk/types"
	"github.com/desmos-labs/desmos/v2/x/staging/posts/types"
)