Skip to content

55 task implement check command and write the test cases for that#65

Merged
maneeshaxyz merged 8 commits intomainfrom
55-task-implement-check-command-and-write-the-test-cases-for-that
Oct 17, 2025
Merged

55 task implement check command and write the test cases for that#65
maneeshaxyz merged 8 commits intomainfrom
55-task-implement-check-command-and-write-the-test-cases-for-that

Conversation

@Aravinda-HWK
Copy link
Copy Markdown
Collaborator

📌 Description

This PR is to implement the CHECK command and write the test cases.


🔍 Changes Made

  1. Implement the CHECK command.
  2. Write the test cases for that.

✅ Checklist (Email System)

  • Core IMAP commands tested (LOGIN, CAPABILITY, LIST, SELECT, FETCH, LOGOUT).
  • Authentication is tested.
  • Docker build & run validated.
  • Configuration loading verified for default and custom paths.
  • Persistent storage with Docker volume verified.
  • Error handling and logging verified
  • Documentation updated (README, config samples).

🧪 Testing Instructions

To test the server, use the instructions in the README in the test directory.


📷 Screenshots / Logs (if applicable)


⚠️ Notes for Reviewers

Merge this PR after merging #64 PR.

…e insertion

- Updated test files in `select_test.go`, `status_test.go`, and `subscribe_test.go` to replace direct instantiation of `models.ClientState` with `helpers.SetupAuthenticatedState`.
- Simplified message insertion in tests by utilizing `helpers.InsertTestMail` and `helpers.CreateTestUser`.
- Improved readability and maintainability of tests by reducing repetitive code.
- Ensured consistent user and mailbox creation across tests.
@Aravinda-HWK Aravinda-HWK self-assigned this Oct 17, 2025
@maneeshaxyz maneeshaxyz merged commit 0bde5c4 into main Oct 17, 2025
2 checks passed
@Aravinda-HWK Aravinda-HWK deleted the 55-task-implement-check-command-and-write-the-test-cases-for-that branch October 18, 2025 13:09
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.

[TASK] Implement CHECK command and write the test cases for that

2 participants