internal

package
v0.0.0-...-9a92843 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 31, 2025 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TestRepeatedFieldsSigner = signing.CustomGetSigner{
	MsgType: proto.MessageName(&testpb.TestRepeatedFields{}),
	Fn: func(msg proto.Message) ([][]byte, error) {
		testMsg := msg.(*testpb.TestRepeatedFields)

		signer := testMsg.NullableDontOmitempty[1].Value
		return [][]byte{[]byte(signer)}, nil
	},
}

Functions

This section is empty.

Types

type SigningFixture

type SigningFixture struct {
	// contains filtered or unexported fields
}

func NewSigningFixture

func NewSigningFixture(
	t *testing.T,
	options SigningFixtureOptions,
	modules ...module.AppModule,
) *SigningFixture

func (*SigningFixture) DynamicMessage

func (s *SigningFixture) DynamicMessage(t *testing.T, msg transaction.Msg) proto.Message

DynamicMessage is identical to the Decoder implementation in https://github.com/cosmos/cosmos-sdk/blob/6d2f6ff068c81c5783e01319beaa51c7dbb43edd/x/tx/decode/decode.go#L136 It is duplicated here to test dynamic message implementations specifically. The code path linked above is also covered in this package.

func (*SigningFixture) MarshalLegacyAminoJSON

func (s *SigningFixture) MarshalLegacyAminoJSON(t *testing.T, o any) []byte

func (*SigningFixture) MessageDescriptor

func (s *SigningFixture) MessageDescriptor(t *testing.T, msg transaction.Msg) protoreflect.MessageDescriptor

func (*SigningFixture) RequireLegacyAminoEquivalent

func (s *SigningFixture) RequireLegacyAminoEquivalent(t *testing.T, msg transaction.Msg)

func (*SigningFixture) UnmarshalGogoProto

func (s *SigningFixture) UnmarshalGogoProto(bz []byte, ptr transaction.Msg) error

type SigningFixtureOptions

type SigningFixtureOptions struct {
	DoNotSortFields bool
}

Directories

Path Synopsis
gogo
pulsar
testpb
Code generated by protoc-gen-go-pulsar.
Code generated by protoc-gen-go-pulsar.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL