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
Owner

@Sitymay Sitymay commented Apr 12, 2025

No description provided.

Copy link

@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.

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

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

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


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

Choose a reason for hiding this comment

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

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

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

assert.Equal(t, http.StatusOK, responseRecorder.Code)

Choose a reason for hiding this comment

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

require

handler.ServeHTTP(responseRecorder, req)

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

Choose a reason for hiding this comment

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

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


body := responseRecorder.Body.String()

assert.Equal(t, http.StatusOK, responseRecorder.Code)

Choose a reason for hiding this comment

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

require

body := responseRecorder.Body.String()

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

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)


body := responseRecorder.Body.String()

assert.Equal(t, http.StatusBadRequest, responseRecorder.Code)

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