Skip to content

Commit

Permalink
make check
Browse files Browse the repository at this point in the history
  • Loading branch information
juniaoshaonian committed Aug 24, 2024
1 parent 258846c commit 8e81b20
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 19 deletions.
3 changes: 0 additions & 3 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,6 @@ github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hf
github.com/google/pprof v0.0.0-20211214055906-6f57359322fd h1:1FjCyPC+syAzJ5/2S8fqdZK1R22vvA0J7JZKcuOIQ7Y=
github.com/google/pprof v0.0.0-20211214055906-6f57359322fd/go.mod h1:KgnwoLYCZ8IQu3XUZ8Nc/bM9CCZFOyjUNOSygVozoDg=
github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI=
github.com/google/subcommands v1.2.0 h1:vWQspBTo2nEqTUFita5/KeEWlUL8kQObDFbub/EN9oE=
github.com/google/subcommands v1.2.0/go.mod h1:ZjhPrFU+Olkh9WazFPsl27BQ4UPiG37m3yTrtFlrHVk=
github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
Expand Down Expand Up @@ -785,7 +784,6 @@ golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=
golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
golang.org/x/mod v0.12.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
golang.org/x/mod v0.14.0 h1:dGoOF9QVLYng8IHTm7BAyWqCqSheQ5pYWGhzW00YJr0=
golang.org/x/mod v0.14.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c=
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
Expand Down Expand Up @@ -1004,7 +1002,6 @@ golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc
golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=
golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU=
golang.org/x/tools v0.13.0/go.mod h1:HvlwmtVNQAhOuCjW7xxvovg8wbNq7LwfXh/k7wXUl58=
golang.org/x/tools v0.17.0 h1:FvmRgNOcs3kOa+T20R1uhfP9F6HgG2mfxDv1vrx1Htc=
golang.org/x/tools v0.17.0/go.mod h1:xsh6VxdV005rRVaS6SSAf9oiAqljS7UZUacMZ8Bnsps=
golang.org/x/xerrors v0.0.0-20190410155217-1f06c39b4373/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20190513163551-3ee3066db522/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
Expand Down
22 changes: 11 additions & 11 deletions internal/resume/internal/integration/handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -991,9 +991,9 @@ func (s *TestSuite) TestResumeInfo() {
ID: 2,
Desc: "diff_desc",
Case: web.Case{
Id: 3,
Result: 3 % 4,
Level: 1,
Id: 3,
Result: 3 % 4,
Level: 1,
Title: "这是案例3",
Introduction: "这是案例的简介3",
},
Expand All @@ -1006,18 +1006,18 @@ func (s *TestSuite) TestResumeInfo() {
Desc: "desc",
RefCases: []web.Case{
{
Id: 2,
Result: 2 % 4,
Highlight: true,
Level: 1,
Id: 2,
Result: 2 % 4,
Highlight: true,
Level: 1,
Title: "这是案例2",
Introduction: "这是案例的简介2",
},
{
Id: 3,
Result: 3 % 4,
Highlight: false,
Level: 2,
Id: 3,
Result: 3 % 4,
Highlight: false,
Level: 2,
Title: "这是案例3",
Introduction: "这是案例的简介3",
},
Expand Down
2 changes: 1 addition & 1 deletion internal/resume/internal/integration/startup/wire_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions internal/resume/internal/web/vo.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@ func newProject(project domain.Project, examMap map[int64]cases.ExamineResult, c
Introduction: project.Introduction,
Core: project.Core,
Contributions: slice.Map(project.Contributions, func(idx int, src domain.Contribution) Contribution {
return newContribution(src, examMap,caseMap)
return newContribution(src, examMap, caseMap)
}),
Difficulties: slice.Map(project.Difficulties, func(idx int, src domain.Difficulty) Difficulty {
return newDifficulty(src, examMap,caseMap)
return newDifficulty(src, examMap, caseMap)
}),
}
}
Expand All @@ -95,7 +95,7 @@ func newContribution(contribution domain.Contribution, examMap map[int64]cases.E
Type: contribution.Type,
Desc: contribution.Desc,
RefCases: slice.Map(contribution.RefCases, func(idx int, src domain.Case) Case {
return newCase(src, examMap,caseMap)
return newCase(src, examMap, caseMap)
}),
}
return con
Expand All @@ -105,7 +105,7 @@ func newDifficulty(difficulty domain.Difficulty, examMap map[int64]cases.Examine
return Difficulty{
ID: difficulty.ID,
Desc: difficulty.Desc,
Case: newCase(difficulty.Case, examMap,caseMap),
Case: newCase(difficulty.Case, examMap, caseMap),
}
}

Expand Down

0 comments on commit 8e81b20

Please sign in to comment.