Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolved user test failures #32

Merged
merged 6 commits into from
Mar 9, 2025
Merged

Resolved user test failures #32

merged 6 commits into from
Mar 9, 2025

Conversation

marrriamme
Copy link
Collaborator

  1. Исправила тесты
  2. Исправила метод GetUserByID

Makefile Outdated
rm -rf coverage/

mocks:
cd ./internal/transport && go generate
Copy link
Collaborator

Choose a reason for hiding this comment

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

Замени на go generate ./...

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Сделано

Makefile Outdated
clean:
rm -rf bin/

run: build
Copy link
Collaborator

@Benzogang-Tape Benzogang-Tape Mar 9, 2025

Choose a reason for hiding this comment

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

У тебя уже есть run
Переименуй в run-build

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Спасибо, не заметила, поменяла

Makefile Outdated
Comment on lines 30 to 32
DOCKER_USERNAME=niknike
IMAGE_NAME=bazaar
TAG=latest
Copy link
Collaborator

Choose a reason for hiding this comment

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

Это наверх файла

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Сделано

Comment on lines 236 to 243
if !regexp.MustCompile(`[0-9]`).MatchString(password) {
return errors.New("password must contain at least one number")
}
if !regexp.MustCompile(`[a-z]`).MatchString(password) {
return errors.New("password must contain at least one lowercase letter")
}
if !regexp.MustCompile(`[A-Z]`).MatchString(password) {
return errors.New("password must contain at least one uppercase letter")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Лучше опять же в 3 переменные вынести

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Вынесла

@marrriamme marrriamme merged commit 87c953e into develop Mar 9, 2025
@marrriamme marrriamme deleted the fix/user-tests branch March 9, 2025 15:57
@marrriamme marrriamme restored the fix/user-tests branch March 9, 2025 15:57
@marrriamme marrriamme deleted the fix/user-tests branch March 9, 2025 15:57
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