package
0.0.0-20250213232608-c453f8b35c75
Repository: https://github.com/stellar/go.git
Documentation: pkg.go.dev
# Functions
And is a Selector which returns true if the given pair of selectors match the field.
FieldEquals returns a Selector which matches on a field name by equality.
FieldMatches returns a Selector which matches on a field name by regexp.
NewGenerator returns a new Generator instance configured with default settings.
SetPtr is a Setter which sets the xdr pointer to null if present is false.
SetU32 returns a Setter which sets a uint32 XDR field to a randomly selected element from vals.
SetVecLen returns a Setter which sets the length of a variable length array ( https://tools.ietf.org/html/rfc4506#section-4.13 ) to a fixed value.
# Constants
DefaultMaxBytesSize is the MaxBytesSize value in the Generator returned by NewGenerator().
DefaultMaxVecLen is the MaxVecLen value in the Generator returned by NewGenerator().
DefaultSeed is the seed for the Source value in the Generator returned by NewGenerator().
# Variables
IsDeepAuthorizedInvocationTree is a Selector which identifies deep trees of the following xdr type:
struct AuthorizedInvocation { Hash contractID; SCSymbol functionName; SCVec args; AuthorizedInvocation subInvocations<>; };
only allows trees of height up to 2.
IsNestedInnerSet is a Selector which identifies nesting for the following xdr type:
struct SCPQuorumSet { uint32 threshold; PublicKey validators<>; SCPQuorumSet innerSets<>; };
supports things like: A,B,C,(D,E,F),(G,H,(I,J,K,L)) only allows 2 levels of nesting.
IsPtr is a Selector which matches on all XDR pointer fields.
SetAssetCode returns a Setter which sets an asset code XDR field to a random alphanumeric string right-padded with 0 bytes.
SetPositiveNum32 returns a Setter which sets a uint32 XDR field to a random positive value.
SetPositiveNum64 returns a Setter which sets a uint64 XDR field to a random positive value.
SetPrintableASCII returns a Setter which sets a home domain string32 with a random printable ascii string.