Skip to content

test: add unit tests for GsodModalOld#463

Closed
adityashirsatrao007 wants to merge 1 commit into
andoriyaprashant:mainfrom
adityashirsatrao007:test/gsod-modal-old
Closed

test: add unit tests for GsodModalOld#463
adityashirsatrao007 wants to merge 1 commit into
andoriyaprashant:mainfrom
adityashirsatrao007:test/gsod-modal-old

Conversation

@adityashirsatrao007

Copy link
Copy Markdown
Contributor

Description

Adds comprehensive unit tests for the GsodModalOld class (GSoD projects 2019–2020).

Changes

  • Added test/gsod_modal_old_test.dart with 10 test cases covering:
    • Constructor field initialization (11 fields)
    • copyWith() - note: uses organization param which maps to organizationName field
    • toMap() serialization (uses organization key, not organization_name)
    • fromMap() deserialization
    • fromMap() with missing fields (empty string / 0 defaults)
    • Equality operator (==)
    • Inequality when fields differ
    • hashCode consistency for equal objects
    • toJson() JSON encoding
    • toString() output

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 GsodModalOld covering:
- Constructor field initialization (11 fields)
- copyWith() - note: organization param maps to organizationName field
- toMap() serialization using 'organization' key
- fromMap() deserialization
- fromMap() with missing fields (empty string / 0 defaults)
- Equality operator (==)
- Inequality when fields differ
- hashCode consistency for equal objects
- toJson() JSON encoding
- toString() output
Copilot AI review requested due to automatic review settings May 30, 2026 10:56
@github-actions

Copy link
Copy Markdown

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

@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 565d556
🔍 Latest deploy log https://app.netlify.com/projects/aquamarine-kheer-83feda/deploys/6a1ac24b9397cc00086a2987

@adityashirsatrao007 adityashirsatrao007 closed this by deleting the head repository Jun 17, 2026
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.

1 participant