Documentation ¶
Index ¶
- func AssertErrorContents(t *testing.T, theError error, contains []string, msgAndArgs ...interface{}) bool
- func MakeBadAddr(base string, index uint8) sdk.AccAddress
- func MakeCopyOfAccAddress(orig sdk.AccAddress) sdk.AccAddress
- func MakeCopyOfAccAddresses(orig []sdk.AccAddress) []sdk.AccAddress
- func MakeCopyOfAutoResponseEntries(orig []*quarantine.AutoResponseEntry) []*quarantine.AutoResponseEntry
- func MakeCopyOfAutoResponseEntry(orig *quarantine.AutoResponseEntry) *quarantine.AutoResponseEntry
- func MakeCopyOfByteSlice(orig []byte) []byte
- func MakeCopyOfByteSliceSlice(orig [][]byte) [][]byte
- func MakeCopyOfCoins(orig sdk.Coins) sdk.Coins
- func MakeCopyOfGenesisState(orig *quarantine.GenesisState) *quarantine.GenesisState
- func MakeCopyOfQuarantineRecord(orig *quarantine.QuarantineRecord) *quarantine.QuarantineRecord
- func MakeCopyOfQuarantineRecordSuffixIndex(orig *quarantine.QuarantineRecordSuffixIndex) *quarantine.QuarantineRecordSuffixIndex
- func MakeCopyOfQuarantinedFunds(orig *quarantine.QuarantinedFunds) *quarantine.QuarantinedFunds
- func MakeCopyOfQuarantinedFundsSlice(orig []*quarantine.QuarantinedFunds) []*quarantine.QuarantinedFunds
- func MakeCopyOfStringSlice(orig []string) []string
- func MakeLongAddr(base string, index uint8) sdk.AccAddress
- func MakeTestAddr(base string, index uint8) sdk.AccAddress
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertErrorContents ¶
func AssertErrorContents(t *testing.T, theError error, contains []string, msgAndArgs ...interface{}) bool
AssertErrorContents asserts that, if contains is empty, there's no error. Otherwise, asserts that there is an error, and that it contains each of the provided strings.
func MakeBadAddr ¶
func MakeBadAddr(base string, index uint8) sdk.AccAddress
MakeBadAddr makes an address that's longer than the max length allowed. The first byte is the index. The next bytes are the base. The byte after that is 33 (!) + the index. Each other byte is one more than the previous wrapping back to 0 after 255. Panics if the base is too long or index too high.
func MakeCopyOfAccAddress ¶
func MakeCopyOfAccAddress(orig sdk.AccAddress) sdk.AccAddress
MakeCopyOfAccAddress makes a deep copy of an AccAddress.
func MakeCopyOfAccAddresses ¶
func MakeCopyOfAccAddresses(orig []sdk.AccAddress) []sdk.AccAddress
MakeCopyOfAccAddresses makes a deep copy of a slice of AccAddresses.
func MakeCopyOfAutoResponseEntries ¶
func MakeCopyOfAutoResponseEntries(orig []*quarantine.AutoResponseEntry) []*quarantine.AutoResponseEntry
MakeCopyOfAutoResponseEntries makes a deep copy of a slice of AutoResponseEntries.
func MakeCopyOfAutoResponseEntry ¶
func MakeCopyOfAutoResponseEntry(orig *quarantine.AutoResponseEntry) *quarantine.AutoResponseEntry
MakeCopyOfAutoResponseEntry makes a deep copy of an AutoResponseEntry.
func MakeCopyOfByteSlice ¶
MakeCopyOfByteSlice makes a deep copy of a byte slice.
func MakeCopyOfByteSliceSlice ¶
MakeCopyOfByteSliceSlice makes a deep copy of a slice of byte slices.
func MakeCopyOfCoins ¶
MakeCopyOfCoins makes a deep copy of some Coins.
func MakeCopyOfGenesisState ¶
func MakeCopyOfGenesisState(orig *quarantine.GenesisState) *quarantine.GenesisState
MakeCopyOfGenesisState makes a deep copy of a GenesisState.
func MakeCopyOfQuarantineRecord ¶
func MakeCopyOfQuarantineRecord(orig *quarantine.QuarantineRecord) *quarantine.QuarantineRecord
MakeCopyOfQuarantineRecord makes a deep copy of a QuarantineRecord.
func MakeCopyOfQuarantineRecordSuffixIndex ¶
func MakeCopyOfQuarantineRecordSuffixIndex(orig *quarantine.QuarantineRecordSuffixIndex) *quarantine.QuarantineRecordSuffixIndex
MakeCopyOfQuarantineRecordSuffixIndex makes a deep copy of a QuarantineRecordSuffixIndex
func MakeCopyOfQuarantinedFunds ¶
func MakeCopyOfQuarantinedFunds(orig *quarantine.QuarantinedFunds) *quarantine.QuarantinedFunds
MakeCopyOfQuarantinedFunds makes a deep copy of a QuarantinedFunds.
func MakeCopyOfQuarantinedFundsSlice ¶
func MakeCopyOfQuarantinedFundsSlice(orig []*quarantine.QuarantinedFunds) []*quarantine.QuarantinedFunds
MakeCopyOfQuarantinedFundsSlice makes a deep copy of a slice of QuarantinedFunds.
func MakeCopyOfStringSlice ¶
MakeCopyOfStringSlice makes a deep copy of a slice of strings.
func MakeLongAddr ¶
func MakeLongAddr(base string, index uint8) sdk.AccAddress
MakeLongAddr makes an AccAddress that's 32 bytes long. The first byte is the index. The next bytes are the base. The byte after that is 65 (A) + the index. Each other byte is one more than the previous. Panics if the base is too long or index too high.
func MakeTestAddr ¶
func MakeTestAddr(base string, index uint8) sdk.AccAddress
MakeTestAddr makes an AccAddress that's 20 bytes long. The first byte is the index. The next bytes are the base. The byte after that is 97 (a) + the index. Each other byte is one more than the previous. Panics if the base is too long or index too high.
Types ¶
This section is empty.