Skip to content

First#1

Open
Sitymay wants to merge 2 commits intomainfrom
first
Open

First#1
Sitymay wants to merge 2 commits intomainfrom
first

Conversation

@Sitymay
Copy link
Copy Markdown
Owner

@Sitymay Sitymay commented Apr 12, 2025

No description provided.

Copy link
Copy Markdown

@dirtymew dirtymew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Привет Всеволод

работа оформлена как надо - отлично

работа принята но есть замечания - обрати внимание

Comment thread precode_test.go

assert.Equal(t, http.StatusOK, responseRecorder.Code)
assert.Len(t, list, totalCount)
// здесь нужно добавить необходимые проверки
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

лишний коммент

Comment thread precode_test.go
body := responseRecorder.Body.String()
list := strings.Split(body, ",")

assert.Equal(t, http.StatusOK, responseRecorder.Code)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

require

Comment thread precode_test.go
handler.ServeHTTP(responseRecorder, req)

body := responseRecorder.Body.String()
list := strings.Split(body, ",")
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

сначала стоит проверить код ответа потом уже с телом работать

Comment thread precode_test.go

body := responseRecorder.Body.String()

assert.Equal(t, http.StatusOK, responseRecorder.Code)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

require

Comment thread precode_test.go
body := responseRecorder.Body.String()

assert.Equal(t, http.StatusOK, responseRecorder.Code)
assert.NotEmpty(t, body)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

assert.NotEmpty(t, responseRecorder.Body)

Comment thread precode_test.go

body := responseRecorder.Body.String()

assert.Equal(t, http.StatusBadRequest, responseRecorder.Code)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

require

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants