Skip to content

test: add unit tests for GSoC models (Gsoc, Organization, Project)#461

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

test: add unit tests for GSoC models (Gsoc, Organization, Project)#461
andoriyaprashant merged 1 commit into
andoriyaprashant:mainfrom
adityashirsatrao007:test/gsoc-modal

Conversation

@adityashirsatrao007

Copy link
Copy Markdown
Contributor

Description

Adds comprehensive unit tests for the GSoC model classes (Gsoc, Organization, Project).

Changes

  • Added test/gsoc_modal_test.dart with 8 test cases covering:

Project model:

  • fromJson() with all 6 fields
  • fromJson() handling missing fields with empty string defaults

Organization model:

  • fromJson() with all fields and empty projects list
  • fromJson() handling missing fields (defaults: 0, empty lists)
  • fromJson() parsing nested Project objects

Gsoc model:

  • fromJson() with all fields and empty organizations list
  • fromJson() handling missing archive_url
  • fromJson() parsing nested Organization objects

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 the GSoC model classes covering:

Project:
- fromJson() with all fields
- fromJson() handling missing fields with empty string defaults

Organization:
- fromJson() with all fields including nested projects
- fromJson() handling missing fields with defaults
- Parsing nested Project objects

Gsoc:
- fromJson() with all fields
- fromJson() handling missing archive_url
- Parsing nested Organization objects
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.

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

@andoriyaprashant andoriyaprashant merged commit 1c1a2e0 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.

2 participants