Skip to content

test: add comprehensive edge-case unit tests for jira-utils#1846

Open
bhavyanjain3004 wants to merge 2 commits into
Priyanshu-byte-coder:mainfrom
bhavyanjain3004:issue-1726
Open

test: add comprehensive edge-case unit tests for jira-utils#1846
bhavyanjain3004 wants to merge 2 commits into
Priyanshu-byte-coder:mainfrom
bhavyanjain3004:issue-1726

Conversation

@bhavyanjain3004
Copy link
Copy Markdown
Contributor

Description

This PR adds comprehensive edge-case unit test coverage for the jira-utils module to verify Jira integration utilities.

Changes

  • Added tests to check case-sensitivity and whitespace handling for statusCategory in categorizeStatus().
  • Added tests for calculateMetrics() to verify zero-duration intervals (where resolved and created times are equal), negative durations (resolved before created), and invalid date strings (which produce NaN).

@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 1, 2026

@bhavyanjain3004 is attempting to deploy a commit to the PRIYANSHU DOSHI's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions Bot added gssoc26 GSSoC 2026 contribution type:feature GSSoC type bonus: new feature type:testing GSSoC type bonus: tests (+10 pts) labels Jun 1, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 1, 2026

GSSoC Label Checklist 🏷️

@Priyanshu-byte-coder — please apply the appropriate labels before merging:

Difficulty (pick one):

  • level:beginner — 20 pts
  • level:intermediate — 35 pts
  • level:advanced — 55 pts
  • level:critical — 80 pts

Quality (optional):

  • quality:clean — ×1.2 multiplier
  • quality:exceptional — ×1.5 multiplier

Validation (required to score):

  • gssoc:approved — counts for points
  • gssoc:invalid / gssoc:spam / gssoc:ai-slop — does not score

Type labels (type:*) are auto-detected from files and title. Review and adjust if needed.
Points formula: (difficulty × quality_multiplier) + type_bonus

@github-actions github-actions Bot added the type:devops GSSoC type bonus: devops (+15 pts) label Jun 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gssoc26 GSSoC 2026 contribution type:devops GSSoC type bonus: devops (+15 pts) type:feature GSSoC type bonus: new feature type:testing GSSoC type bonus: tests (+10 pts)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant