Documentation ¶
Index ¶
- Variables
- type SigningFixture
- func (s *SigningFixture) DynamicMessage(t *testing.T, msg transaction.Msg) proto.Message
- func (s *SigningFixture) MarshalLegacyAminoJSON(t *testing.T, o any) []byte
- func (s *SigningFixture) MessageDescriptor(t *testing.T, msg transaction.Msg) protoreflect.MessageDescriptor
- func (s *SigningFixture) RequireLegacyAminoEquivalent(t *testing.T, msg transaction.Msg)
- func (s *SigningFixture) UnmarshalGogoProto(bz []byte, ptr transaction.Msg) error
- type SigningFixtureOptions
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
}
Click to show internal directories.
Click to hide internal directories.