Skip to content

Bgsw baselib ut reviewfinding fix#185

Closed
Rutuja-Patil-Bosch wants to merge 20 commits into
eclipse-score:mainfrom
bgsw-contrib:bgsw_baselib_ut_reviewfindingFix
Closed

Bgsw baselib ut reviewfinding fix#185
Rutuja-Patil-Bosch wants to merge 20 commits into
eclipse-score:mainfrom
bgsw-contrib:bgsw_baselib_ut_reviewfindingFix

Conversation

@Rutuja-Patil-Bosch
Copy link
Copy Markdown
Contributor

Review findings are fixed for

  1. The yearIsLeap() function expects a uint16_t argument, but you're passing an int. When strict warnings are enabled, this type mismatch is treated as a compilation error.
    -> This logic is removed & test cases are updated with fixed input values instead of for loop
  2. "Negative" isn't one of the applicable values https://eclipse-score.github.io/process_description/main/process_areas/verification/guidance/verification_specification.html#test-specification
    -> as per spec & discussion in followed comments updated as "requirements-based"
  3. Those properties are not part of the test specification https://eclipse-score.github.io/process_description/main/process_areas/verification/guidance/verification_specification.html#test-specification
    -> Removed these additional properties
  4. this is dead code
    -> Test cases are updated as dead code was not for all the conditions. Due to for loop, it was was dead code for few iteration. Removed for loop & tested for exact values.

Rutuja-Patil-Bosch and others added 20 commits March 24, 2026 14:04
…lse_isValidDateTimeFormat EpochToDateTime_Before1970_LeapYear_January_AdjustsDaysSum invalid_day_values invalid_month_values
This PR addresses findings observed in the review of eclipse-score#135
1. The yearIsLeap() function expects a uint16_t argument, but you're passing an int. When strict warnings are enabled, this type mismatch is treated as a compilation error.
    -> This logic is removed & test cases are updated with fixed input values instead of for loop
2. "Negative" isn't one of the applicable values https://eclipse-score.github.io/process_description/main/process_areas/verification/guidance/verification_specification.html#test-specification
   -> as per spec & discussion in followed comments updated as "requirements-based"
3. Those properties are not part of the test specification https://eclipse-score.github.io/process_description/main/process_areas/verification/guidance/verification_specification.html#test-specification
   -> Removed these additional properties
4. this is dead code
   -> Test cases are updated as dead code was not for all the conditions. Due to for loop, it was was dead code for few iteration. Removed for loop & tested for exact values.
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 8, 2026

The created documentation from the pull request is available at: docu-html

@Rutuja-Patil-Bosch
Copy link
Copy Markdown
Contributor Author

I'll create this as part of #135

@github-project-automation github-project-automation Bot moved this from In Progress to Done in BAS - Baselibs FT May 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant