Documentation ¶
Index ¶
- Constants
- func AccAddress(t testing.TB) sdk.AccAddress
- func Attribute(t testing.TB) attrv1.Attribute
- func Attributes(t testing.TB) attrv1.Attributes
- func BidID(t testing.TB) mtypes.BidID
- func BidIDForAccount(t testing.TB, owner, provider sdk.Address) mtypes.BidID
- func DeploymentID(t testing.TB) dtypes.DeploymentID
- func DeploymentIDForAccount(t testing.TB, addr sdk.Address) dtypes.DeploymentID
- func DeploymentVersion(t testing.TB) []byte
- func GroupID(t testing.TB) dtypes.GroupID
- func GroupIDForAccount(t testing.TB, addr sdk.Address) dtypes.GroupID
- func Hostname(t testing.TB) string
- func Key(t testing.TB) ed25519.PrivKey
- func Keyring(t testing.TB, cdc codec.Codec) keyring.Keyring
- func LeaseID(t testing.TB) mtypes.LeaseID
- func LeaseIDForAccount(t testing.TB, owner, provider sdk.Address) mtypes.LeaseID
- func Name(_ testing.TB, prefix string) string
- func OrderID(t testing.TB) mtypes.OrderID
- func OrderIDForAccount(t testing.TB, addr sdk.Address) mtypes.OrderID
- func PlacementRequirements(t testing.TB) attrv1.PlacementRequirements
- func Provider(t testing.TB) ptypes.Provider
- func ProviderHostname(t testing.TB) string
- func RandCPUUnits() uint
- func RandGPUUnits() uint
- func RandMemoryQuantity() uint64
- func RandRangeInt(min, max int) int
- func RandRangeUint(min, max uint) uint
- func RandRangeUint64(min, max uint64) uint64
- func RandStorageQuantity() uint64
- func ResourceUnits(_ testing.TB) rtypes.Resources
- func Resources(t testing.TB) dtypes.ResourceUnits
- type ConfigOption
- type InterceptState
Constants ¶
View Source
const (
CoinDenom = "uakt"
)
CoinDenom provides ability to create coins in test functions and pass them into testutil functionality.
Variables ¶
This section is empty.
Functions ¶
func AccAddress ¶
func AccAddress(t testing.TB) sdk.AccAddress
AccAddress provides an Account's Address bytes from a ed25519 generated private key.
func Attribute ¶
Attribute generates a random sdk.Attribute
func Attributes ¶
func Attributes(t testing.TB) attrv1.Attributes
Attributes generates a set of sdk.Attribute
func DeploymentID ¶
func DeploymentID(t testing.TB) dtypes.DeploymentID
func DeploymentIDForAccount ¶
func DeploymentVersion ¶
DeploymentVersion provides a random sha256 sum for simulating Deployments.
func Hostname ¶
Hostname generates a random hostname with a "test.com" domain
func LeaseIDForAccount ¶
func Name ¶
Name generates a random name with the given prefix
func PlacementRequirements ¶
func PlacementRequirements(t testing.TB) attrv1.PlacementRequirements
PlacementRequirements generates placement requirements
func Resources ¶
func Resources(t testing.TB) dtypes.ResourceUnits
Resources produces an attribute list for populating a Group's 'Resources' fields.
Types ¶
type ConfigOption ¶
type ConfigOption func(*networkConfigOptions)
func WithInterceptState ¶
func WithInterceptState(val InterceptState) ConfigOption
WithInterceptState set custom name of the log object
type InterceptState ¶
type InterceptState func(codec.Codec, string, json.RawMessage) json.RawMessage
Click to show internal directories.
Click to hide internal directories.