Skip to content

Commit

Permalink
edit: edit server_test.go
Browse files Browse the repository at this point in the history
多个const并列时组合到一个。若无逻辑关系按从短到长排列
  • Loading branch information
Zherphy committed Dec 12, 2024
1 parent fc64923 commit 173c3c0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions server/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,11 @@ var serverInfo = ServerInfo{
isAuthorized: auth.GiteeAuth(),
}

const unexpectedPanic = "unexpected panic value or wantErr mismatch"
const expectedPanic = "expected panic but none occurred"
const batchUrlPath = "/owner/repo/objects/batch"
const (
batchUrlPath = "/owner/repo/objects/batch"
expectedPanic = "expected panic but none occurred"
unexpectedPanic = "unexpected panic value or wantErr mismatch"
)

func TestNew(t *testing.T) {
type args struct {
Expand Down

0 comments on commit 173c3c0

Please sign in to comment.