Skip to content

test: add unit tests for SokdeProjectModal#455

Merged
andoriyaprashant merged 1 commit into
andoriyaprashant:mainfrom
adityashirsatrao007:test/sokde-project-modal
Jun 3, 2026
Merged

test: add unit tests for SokdeProjectModal#455
andoriyaprashant merged 1 commit into
andoriyaprashant:mainfrom
adityashirsatrao007:test/sokde-project-modal

Conversation

@adityashirsatrao007

Copy link
Copy Markdown
Contributor

Description

Adds comprehensive unit tests for the SokdeProjectModal class.

Changes

  • Added test/sokde_project_modal_test.dart with 7 test cases covering:
    • Constructor field initialization
    • fromJson() with list-type mentors and mentees
    • fromJson() with string-type mentor/mentee (single value as string)
    • fromJson() integer-to-string year conversion
    • toJson() serialization
    • toString() output
    • Edge case: empty mentors/mentees lists

Related Issue

Contributes to #417 (improving test coverage and code quality)

Type of Change

  • New feature (adding tests)

Checklist

  • Tests pass locally
  • Code follows project style guidelines

Comprehensive unit tests for SokdeProjectModal covering:
- Constructor field initialization
- fromJson() with list and string mentor/mentee values
- fromJson() integer-to-string year conversion
- toJson() serialization
- toString() output
- Edge case: empty mentors/mentees lists
Copilot AI review requested due to automatic review settings May 30, 2026 10:55
@github-actions

Copy link
Copy Markdown

Thank you for submitting your pull request! We'll review it as soon as possible.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds unit tests for the SokdeProjectModal class to validate construction, JSON serialization/deserialization, and string representation.

Changes:

  • Adds a new test file covering the constructor, fromJson, toJson, and toString methods.
  • Includes edge cases such as string-typed mentors/mentees and empty lists.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@netlify

netlify Bot commented May 30, 2026

Copy link
Copy Markdown

Deploy Preview for aquamarine-kheer-83feda failed. Why did it fail? →

Name Link
🔨 Latest commit 3ec3be7
🔍 Latest deploy log https://app.netlify.com/projects/aquamarine-kheer-83feda/deploys/6a1ac20c493ad50008aaa53d

@andoriyaprashant andoriyaprashant merged commit 5c64c8d into andoriyaprashant:main Jun 3, 2026
1 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants