Skip to content

test: add unit tests for HyperledgerProjectModal#457

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

test: add unit tests for HyperledgerProjectModal#457
andoriyaprashant merged 1 commit into
andoriyaprashant:mainfrom
adityashirsatrao007:test/hyperledger-modal

Conversation

@adityashirsatrao007

Copy link
Copy Markdown
Contributor

Description

Adds comprehensive unit tests for the HyperledgerProjectModal class.

Changes

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

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 HyperledgerProjectModal covering:
- Constructor field initialization
- fromJson() with list and string mentor values
- fromJson() integer-to-string year conversion
- toJson() serialization
- toString() output
- Edge case: empty mentors list
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 HyperledgerProjectModal class covering construction, JSON serialization/deserialization, and edge cases.

Changes:

  • New test file with 7 test cases for HyperledgerProjectModal.
  • Covers constructor, fromJson (list and string mentors, int year conversion), toJson, toString, and empty mentor list.

💡 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 9ce40e0
🔍 Latest deploy log https://app.netlify.com/projects/aquamarine-kheer-83feda/deploys/6a1ac21c57017800085592dc

@andoriyaprashant andoriyaprashant merged commit 563a7ac 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