Skip to content

Commit

Permalink
chore: run gofmt
Browse files Browse the repository at this point in the history
  • Loading branch information
dadamu committed Jun 13, 2023
1 parent 7c6ac35 commit f911e1e
Show file tree
Hide file tree
Showing 16 changed files with 82 additions and 82 deletions.
2 changes: 1 addition & 1 deletion x/posts/client/cli/cli_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func (s *IntegrationTestSuite) SetupSuite() {
"cosmos1s0he0z3g92zwsxdj83h0ky9w463sx7gq9mqtgn",
"cosmos1s0he0z3g92zwsxdj83h0ky9w463sx7gq9mqtgn",
time.Date(2020, 1, 1, 12, 00, 00, 000, time.UTC),
nil,
nil,
),
},
[]subspacestypes.Section{
Expand Down
14 changes: 7 additions & 7 deletions x/posts/keeper/genesis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func (suite *KeeperTestSuite) TestKeeper_ExportGenesis() {
"cosmos1m0czrla04f7rp3zg7dsgc4kla54q7pc4xt00l5",
"cosmos1qzskhrcjnkdz2ln4yeafzsdwht8ch08j4wed69",
time.Date(2020, 1, 1, 12, 00, 00, 000, time.UTC),
nil,
nil,
),
subspacestypes.NewSubspace(
2,
Expand All @@ -41,7 +41,7 @@ nil,
"cosmos1m0czrla04f7rp3zg7dsgc4kla54q7pc4xt00l5",
"cosmos1qzskhrcjnkdz2ln4yeafzsdwht8ch08j4wed69",
time.Date(2020, 1, 1, 12, 00, 00, 000, time.UTC),
nil,
nil,
),
}

Expand Down Expand Up @@ -288,7 +288,7 @@ func (suite *KeeperTestSuite) TestKeeper_ImportGenesis() {
"cosmos1m0czrla04f7rp3zg7dsgc4kla54q7pc4xt00l5",
"cosmos1qzskhrcjnkdz2ln4yeafzsdwht8ch08j4wed69",
time.Date(2020, 1, 1, 12, 00, 00, 000, time.UTC),
nil,
nil,
),
}

Expand Down Expand Up @@ -322,7 +322,7 @@ nil,
"cosmos1m0czrla04f7rp3zg7dsgc4kla54q7pc4xt00l5",
"cosmos1qzskhrcjnkdz2ln4yeafzsdwht8ch08j4wed69",
time.Date(2020, 1, 1, 12, 00, 00, 000, time.UTC),
nil,
nil,
),
}

Expand Down Expand Up @@ -384,7 +384,7 @@ nil,
"cosmos1m0czrla04f7rp3zg7dsgc4kla54q7pc4xt00l5",
"cosmos1qzskhrcjnkdz2ln4yeafzsdwht8ch08j4wed69",
time.Date(2020, 1, 1, 12, 00, 00, 000, time.UTC),
nil,
nil,
),
}

Expand Down Expand Up @@ -418,7 +418,7 @@ nil,
"cosmos1m0czrla04f7rp3zg7dsgc4kla54q7pc4xt00l5",
"cosmos1qzskhrcjnkdz2ln4yeafzsdwht8ch08j4wed69",
time.Date(2020, 1, 1, 12, 00, 00, 000, time.UTC),
nil,
nil,
),
}

Expand Down Expand Up @@ -475,7 +475,7 @@ nil,
"cosmos1m0czrla04f7rp3zg7dsgc4kla54q7pc4xt00l5",
"cosmos1qzskhrcjnkdz2ln4yeafzsdwht8ch08j4wed69",
time.Date(2020, 1, 1, 12, 00, 00, 000, time.UTC),
nil,
nil,
),
}

Expand Down
4 changes: 2 additions & 2 deletions x/posts/keeper/invariants_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func (suite *KeeperTestSuite) TestValidSubspacesInvariant() {
"cosmos1s0he0z3g92zwsxdj83h0ky9w463sx7gq9mqtgn",
"cosmos1s0he0z3g92zwsxdj83h0ky9w463sx7gq9mqtgn",
time.Date(2020, 1, 1, 12, 00, 00, 000, time.UTC),
nil,
nil,
),
}

Expand All @@ -55,7 +55,7 @@ nil,
"cosmos1s0he0z3g92zwsxdj83h0ky9w463sx7gq9mqtgn",
"cosmos1s0he0z3g92zwsxdj83h0ky9w463sx7gq9mqtgn",
time.Date(2020, 1, 1, 12, 00, 00, 000, time.UTC),
nil,
nil,
),
}

Expand Down
4 changes: 2 additions & 2 deletions x/posts/legacy/v2/store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func TestMigrateStore(t *testing.T) {
"cosmos1s0he0z3g92zwsxdj83h0ky9w463sx7gq9mqtgn",
"cosmos1s0he0z3g92zwsxdj83h0ky9w463sx7gq9mqtgn",
time.Date(2020, 1, 1, 12, 00, 00, 000, time.UTC),
nil,
nil,
))

sk.SaveSubspace(ctx, subspacestypes.NewSubspace(
Expand All @@ -70,7 +70,7 @@ nil,
"cosmos1s0he0z3g92zwsxdj83h0ky9w463sx7gq9mqtgn",
"cosmos1s0he0z3g92zwsxdj83h0ky9w463sx7gq9mqtgn",
time.Date(2020, 1, 1, 12, 00, 00, 000, time.UTC),
nil,
nil,
))
},
shouldErr: false,
Expand Down
2 changes: 1 addition & 1 deletion x/reactions/client/cli/cli_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func (s *IntegrationTestSuite) SetupSuite() {
"cosmos1s0he0z3g92zwsxdj83h0ky9w463sx7gq9mqtgn",
"cosmos1s0he0z3g92zwsxdj83h0ky9w463sx7gq9mqtgn",
time.Date(2020, 1, 1, 12, 00, 00, 000, time.UTC),
nil,
nil,
),
},
nil, nil, nil, nil, nil,
Expand Down
2 changes: 1 addition & 1 deletion x/reactions/keeper/genesis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func (suite *KeeperTestSuite) TestKeeper_ExportGenesis() {
"cosmos1s0he0z3g92zwsxdj83h0ky9w463sx7gq9mqtgn",
"cosmos1s0he0z3g92zwsxdj83h0ky9w463sx7gq9mqtgn",
time.Date(2020, 1, 1, 12, 00, 00, 000, time.UTC),
nil,
nil,
),
}

Expand Down
6 changes: 3 additions & 3 deletions x/reactions/keeper/invariants_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func (suite *KeeperTestSuite) TestValidSubspacesInvariant() {
"cosmos1s0he0z3g92zwsxdj83h0ky9w463sx7gq9mqtgn",
"cosmos1s0he0z3g92zwsxdj83h0ky9w463sx7gq9mqtgn",
time.Date(2020, 1, 1, 12, 00, 00, 000, time.UTC),
nil,
nil,
),
}

Expand All @@ -56,7 +56,7 @@ nil,
"cosmos1s0he0z3g92zwsxdj83h0ky9w463sx7gq9mqtgn",
"cosmos1s0he0z3g92zwsxdj83h0ky9w463sx7gq9mqtgn",
time.Date(2020, 1, 1, 12, 00, 00, 000, time.UTC),
nil,
nil,
),
}

Expand All @@ -82,7 +82,7 @@ nil,
"cosmos1s0he0z3g92zwsxdj83h0ky9w463sx7gq9mqtgn",
"cosmos1s0he0z3g92zwsxdj83h0ky9w463sx7gq9mqtgn",
time.Date(2020, 1, 1, 12, 00, 00, 000, time.UTC),
nil,
nil,
),
}

Expand Down
8 changes: 4 additions & 4 deletions x/reactions/legacy/v2/store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func TestMigrateStore(t *testing.T) {
"cosmos1s0he0z3g92zwsxdj83h0ky9w463sx7gq9mqtgn",
"cosmos1s0he0z3g92zwsxdj83h0ky9w463sx7gq9mqtgn",
time.Date(2020, 1, 1, 12, 00, 00, 000, time.UTC),
nil,
nil,
))

sk.SaveSubspace(ctx, subspacestypes.NewSubspace(
Expand All @@ -70,7 +70,7 @@ nil,
"cosmos1s0he0z3g92zwsxdj83h0ky9w463sx7gq9mqtgn",
"cosmos1s0he0z3g92zwsxdj83h0ky9w463sx7gq9mqtgn",
time.Date(2020, 1, 1, 12, 00, 00, 000, time.UTC),
nil,
nil,
))
},
shouldErr: false,
Expand All @@ -91,7 +91,7 @@ nil,
"cosmos1s0he0z3g92zwsxdj83h0ky9w463sx7gq9mqtgn",
"cosmos1s0he0z3g92zwsxdj83h0ky9w463sx7gq9mqtgn",
time.Date(2020, 1, 1, 12, 00, 00, 000, time.UTC),
nil,
nil,
))

sk.SaveSubspace(ctx, subspacestypes.NewSubspace(
Expand All @@ -102,7 +102,7 @@ nil,
"cosmos1s0he0z3g92zwsxdj83h0ky9w463sx7gq9mqtgn",
"cosmos1s0he0z3g92zwsxdj83h0ky9w463sx7gq9mqtgn",
time.Date(2020, 1, 1, 12, 00, 00, 000, time.UTC),
nil,
nil,
))
},
shouldErr: false,
Expand Down
2 changes: 1 addition & 1 deletion x/reports/client/cli/cli_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func (s *IntegrationTestSuite) SetupSuite() {
"cosmos1s0he0z3g92zwsxdj83h0ky9w463sx7gq9mqtgn",
"cosmos1s0he0z3g92zwsxdj83h0ky9w463sx7gq9mqtgn",
time.Date(2020, 1, 1, 12, 00, 00, 000, time.UTC),
nil,
nil,
),
},
nil, nil, nil, nil, nil,
Expand Down
6 changes: 3 additions & 3 deletions x/reports/keeper/external_hooks_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func (suite *KeeperTestSuite) TestKeeper_AfterSubspaceSaved() {
"cosmos1a0cj0j6ujn2xap8p40y6648d0w2npytw3xvenm",
"cosmos1a0cj0j6ujn2xap8p40y6648d0w2npytw3xvenm",
time.Date(2020, 1, 2, 12, 00, 00, 000, time.UTC),
nil,
nil,
),
check: func(ctx sdk.Context) {
storedReasonID, err := suite.k.GetNextReasonID(ctx, 1)
Expand All @@ -51,7 +51,7 @@ nil,
"cosmos1a0cj0j6ujn2xap8p40y6648d0w2npytw3xvenm",
"cosmos1a0cj0j6ujn2xap8p40y6648d0w2npytw3xvenm",
time.Date(2020, 1, 2, 12, 00, 00, 000, time.UTC),
nil,
nil,
))
suite.k.SetNextReportID(ctx, 1, 2)
suite.k.SetNextReasonID(ctx, 1, 2)
Expand All @@ -64,7 +64,7 @@ nil,
"cosmos1a0cj0j6ujn2xap8p40y6648d0w2npytw3xvenm",
"cosmos1a0cj0j6ujn2xap8p40y6648d0w2npytw3xvenm",
time.Date(2020, 1, 2, 12, 00, 00, 000, time.UTC),
nil,
nil,
),
check: func(ctx sdk.Context) {
storedReasonID, err := suite.k.GetNextReasonID(ctx, 1)
Expand Down
4 changes: 2 additions & 2 deletions x/reports/keeper/genesis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func (suite *KeeperTestSuite) TestKeeper_ExportGenesis() {
"cosmos1m0czrla04f7rp3zg7dsgc4kla54q7pc4xt00l5",
"cosmos1qzskhrcjnkdz2ln4yeafzsdwht8ch08j4wed69",
time.Date(2020, 1, 1, 12, 00, 00, 000, time.UTC),
nil,
nil,
))
suite.k.SetNextReasonID(ctx, 1, 1)
suite.k.SetNextReportID(ctx, 1, 2)
Expand All @@ -39,7 +39,7 @@ nil,
"cosmos1m0czrla04f7rp3zg7dsgc4kla54q7pc4xt00l5",
"cosmos1qzskhrcjnkdz2ln4yeafzsdwht8ch08j4wed69",
time.Date(2020, 1, 1, 12, 00, 00, 000, time.UTC),
nil,
nil,
))
suite.k.SetNextReasonID(ctx, 2, 3)
suite.k.SetNextReportID(ctx, 2, 4)
Expand Down
26 changes: 13 additions & 13 deletions x/reports/keeper/invariants_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func (suite *KeeperTestSuite) TestValidSubspacesInvariant() {
"cosmos1m0czrla04f7rp3zg7dsgc4kla54q7pc4xt00l5",
"cosmos1qzskhrcjnkdz2ln4yeafzsdwht8ch08j4wed69",
time.Date(2020, 1, 1, 12, 00, 00, 000, time.UTC),
nil,
nil,
))
},
expBroken: true,
Expand All @@ -45,7 +45,7 @@ nil,
"cosmos1m0czrla04f7rp3zg7dsgc4kla54q7pc4xt00l5",
"cosmos1qzskhrcjnkdz2ln4yeafzsdwht8ch08j4wed69",
time.Date(2020, 1, 1, 12, 00, 00, 000, time.UTC),
nil,
nil,
))
suite.k.SetNextReasonID(ctx, 1, 1)

Expand All @@ -63,7 +63,7 @@ nil,
"cosmos1m0czrla04f7rp3zg7dsgc4kla54q7pc4xt00l5",
"cosmos1qzskhrcjnkdz2ln4yeafzsdwht8ch08j4wed69",
time.Date(2020, 1, 1, 12, 00, 00, 000, time.UTC),
nil,
nil,
))
suite.k.SetNextReasonID(ctx, 1, 1)
suite.k.SetNextReportID(ctx, 1, 1)
Expand Down Expand Up @@ -115,7 +115,7 @@ func (suite *KeeperTestSuite) TestValidReasonsInvariant() {
"cosmos1m0czrla04f7rp3zg7dsgc4kla54q7pc4xt00l5",
"cosmos1qzskhrcjnkdz2ln4yeafzsdwht8ch08j4wed69",
time.Date(2020, 1, 1, 12, 00, 00, 000, time.UTC),
nil,
nil,
))

suite.k.SaveReason(ctx, types.NewReason(
Expand All @@ -138,7 +138,7 @@ nil,
"cosmos1m0czrla04f7rp3zg7dsgc4kla54q7pc4xt00l5",
"cosmos1qzskhrcjnkdz2ln4yeafzsdwht8ch08j4wed69",
time.Date(2020, 1, 1, 12, 00, 00, 000, time.UTC),
nil,
nil,
))
suite.k.SetNextReasonID(ctx, 1, 1)

Expand All @@ -162,7 +162,7 @@ nil,
"cosmos1m0czrla04f7rp3zg7dsgc4kla54q7pc4xt00l5",
"cosmos1qzskhrcjnkdz2ln4yeafzsdwht8ch08j4wed69",
time.Date(2020, 1, 1, 12, 00, 00, 000, time.UTC),
nil,
nil,
))
suite.k.SetNextReasonID(ctx, 1, 2)

Expand All @@ -186,7 +186,7 @@ nil,
"cosmos1m0czrla04f7rp3zg7dsgc4kla54q7pc4xt00l5",
"cosmos1qzskhrcjnkdz2ln4yeafzsdwht8ch08j4wed69",
time.Date(2020, 1, 1, 12, 00, 00, 000, time.UTC),
nil,
nil,
))
suite.k.SetNextReasonID(ctx, 1, 2)

Expand Down Expand Up @@ -247,7 +247,7 @@ func (suite *KeeperTestSuite) TestValidReportsInvariant() {
"cosmos1s0he0z3g92zwsxdj83h0ky9w463sx7gq9mqtgn",
"cosmos1s0he0z3g92zwsxdj83h0ky9w463sx7gq9mqtgn",
time.Date(2020, 1, 1, 12, 00, 00, 000, time.UTC),
nil,
nil,
))

suite.k.SaveReport(ctx, types.NewReport(
Expand All @@ -273,7 +273,7 @@ nil,
"cosmos1s0he0z3g92zwsxdj83h0ky9w463sx7gq9mqtgn",
"cosmos1s0he0z3g92zwsxdj83h0ky9w463sx7gq9mqtgn",
time.Date(2020, 1, 1, 12, 00, 00, 000, time.UTC),
nil,
nil,
))

suite.k.SaveReason(ctx, types.NewReason(
Expand Down Expand Up @@ -306,7 +306,7 @@ nil,
"cosmos1s0he0z3g92zwsxdj83h0ky9w463sx7gq9mqtgn",
"cosmos1s0he0z3g92zwsxdj83h0ky9w463sx7gq9mqtgn",
time.Date(2020, 1, 1, 12, 00, 00, 000, time.UTC),
nil,
nil,
))
suite.k.SetNextReportID(ctx, 1, 1)

Expand Down Expand Up @@ -340,7 +340,7 @@ nil,
"cosmos1s0he0z3g92zwsxdj83h0ky9w463sx7gq9mqtgn",
"cosmos1s0he0z3g92zwsxdj83h0ky9w463sx7gq9mqtgn",
time.Date(2020, 1, 1, 12, 00, 00, 000, time.UTC),
nil,
nil,
))
suite.k.SetNextReportID(ctx, 1, 2)

Expand Down Expand Up @@ -374,7 +374,7 @@ nil,
"cosmos1s0he0z3g92zwsxdj83h0ky9w463sx7gq9mqtgn",
"cosmos1s0he0z3g92zwsxdj83h0ky9w463sx7gq9mqtgn",
time.Date(2020, 1, 1, 12, 00, 00, 000, time.UTC),
nil,
nil,
))
suite.k.SetNextReportID(ctx, 1, 2)

Expand Down Expand Up @@ -408,7 +408,7 @@ nil,
"cosmos1s0he0z3g92zwsxdj83h0ky9w463sx7gq9mqtgn",
"cosmos1s0he0z3g92zwsxdj83h0ky9w463sx7gq9mqtgn",
time.Date(2020, 1, 1, 12, 00, 00, 000, time.UTC),
nil,
nil,
))
suite.k.SetNextReportID(ctx, 1, 2)

Expand Down
Loading

0 comments on commit f911e1e

Please sign in to comment.