run make format (#8642)
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This commit is contained in:
parent
c6355fdb99
commit
9b7a12f7db
|
@ -94,7 +94,7 @@ func TestRunMigrations(t *testing.T) {
|
|||
var err error
|
||||
|
||||
// Since it's very hard to test actual in-place store migrations in
|
||||
// tests (due to the difficulty of maintaing multiple versions of a
|
||||
// tests (due to the difficulty of maintaining multiple versions of a
|
||||
// module), we're just testing here that the migration logic is
|
||||
// called.
|
||||
called := 0
|
||||
|
|
|
@ -30,51 +30,51 @@ func BenchmarkParseCoin(b *testing.B) {
|
|||
}
|
||||
|
||||
func BenchmarkUintMarshal(b *testing.B) {
|
||||
var values = []uint64{
|
||||
0,
|
||||
1,
|
||||
1 << 10,
|
||||
1<<10 - 3,
|
||||
1<<63 - 1,
|
||||
1<<32 - 7,
|
||||
1<<22 - 8,
|
||||
}
|
||||
var values = []uint64{
|
||||
0,
|
||||
1,
|
||||
1 << 10,
|
||||
1<<10 - 3,
|
||||
1<<63 - 1,
|
||||
1<<32 - 7,
|
||||
1<<22 - 8,
|
||||
}
|
||||
|
||||
var scratch [20]byte
|
||||
b.ReportAllocs()
|
||||
for i := 0; i < b.N; i++ {
|
||||
for _, value := range values {
|
||||
u := types.NewUint(value)
|
||||
n, err := u.MarshalTo(scratch[:])
|
||||
if err != nil {
|
||||
b.Fatal(err)
|
||||
}
|
||||
b.SetBytes(int64(n))
|
||||
}
|
||||
}
|
||||
var scratch [20]byte
|
||||
b.ReportAllocs()
|
||||
for i := 0; i < b.N; i++ {
|
||||
for _, value := range values {
|
||||
u := types.NewUint(value)
|
||||
n, err := u.MarshalTo(scratch[:])
|
||||
if err != nil {
|
||||
b.Fatal(err)
|
||||
}
|
||||
b.SetBytes(int64(n))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func BenchmarkIntMarshal(b *testing.B) {
|
||||
var values = []int64{
|
||||
0,
|
||||
1,
|
||||
1 << 10,
|
||||
1<<10 - 3,
|
||||
1<<63 - 1,
|
||||
1<<32 - 7,
|
||||
1<<22 - 8,
|
||||
}
|
||||
var values = []int64{
|
||||
0,
|
||||
1,
|
||||
1 << 10,
|
||||
1<<10 - 3,
|
||||
1<<63 - 1,
|
||||
1<<32 - 7,
|
||||
1<<22 - 8,
|
||||
}
|
||||
|
||||
var scratch [20]byte
|
||||
b.ReportAllocs()
|
||||
for i := 0; i < b.N; i++ {
|
||||
for _, value := range values {
|
||||
in := types.NewInt(value)
|
||||
n, err := in.MarshalTo(scratch[:])
|
||||
if err != nil {
|
||||
b.Fatal(err)
|
||||
}
|
||||
b.SetBytes(int64(n))
|
||||
}
|
||||
}
|
||||
var scratch [20]byte
|
||||
b.ReportAllocs()
|
||||
for i := 0; i < b.N; i++ {
|
||||
for _, value := range values {
|
||||
in := types.NewInt(value)
|
||||
n, err := in.MarshalTo(scratch[:])
|
||||
if err != nil {
|
||||
b.Fatal(err)
|
||||
}
|
||||
b.SetBytes(int64(n))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -307,7 +307,7 @@ func (suite *TendermintTestSuite) TestCheckSubstituteAndUpdateState() {
|
|||
suite.coordinator.CommitBlock(suite.chainA, suite.chainB)
|
||||
}
|
||||
|
||||
// get updated substitue
|
||||
// get updated substitute
|
||||
substituteClientState = suite.chainA.GetClientState(substitute).(*types.ClientState)
|
||||
|
||||
subjectClientStore := suite.chainA.App.IBCKeeper.ClientKeeper.ClientStore(suite.chainA.GetContext(), subject)
|
||||
|
|
Loading…
Reference in New Issue