Skip to content

Comments

Add the sportsperson sample#47

Closed
MaryamZi wants to merge 0 commit intoballerina-platform:mainfrom
MaryamZi:main
Closed

Add the sportsperson sample#47
MaryamZi wants to merge 0 commit intoballerina-platform:mainfrom
MaryamZi:main

Conversation

@MaryamZi
Copy link
Member

Purpose

$title.

@codecov
Copy link

codecov bot commented Mar 29, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 69.89%. Comparing base (82a2db3) to head (d72a928).

❌ Your project check has failed because the head coverage (69.89%) is below the target coverage (80.00%). You can increase the head coverage or adjust the target coverage.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #47   +/-   ##
=======================================
  Coverage   69.89%   69.89%           
=======================================
  Files           6        6           
  Lines         186      186           
  Branches       53       53           
=======================================
  Hits          130      130           
  Misses         56       56           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

io:println("Born in: ", person.yearOfBirth);
io:println("Sport: ", person.sport);
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Lets handle the error and null scenarios as well, for the completeness of the example

Copy link
Member Author

Choose a reason for hiding this comment

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

check is good enough for error IMO. Added an else block for nil. New PR - #49

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.

2 participants