Skip to content

Conversation

IkerDC
Copy link
Contributor

@IkerDC IkerDC commented Aug 2, 2023

If your build fails due to your commit message not passing the build checks, please review the guidelines here: https://github.com/edgexfoundry/device-rest-go/blob/main/.github/Contributing.md

PR Checklist

Please check if your PR fulfills the following requirements:

  • I am not introducing a breaking change (if you are, flag in conventional commit message with BREAKING CHANGE: describing the break)
  • I am not introducing a new dependency (add notes below if you are)
  • I have added unit tests for the new feature or bug fix (if not, why?)
  • I have fully tested (add details below) this the new feature or bug fix (if not, why?)
    Tested the functions as stand-alone, added unit test, tested with real devices returning a deviceResource of "0.0".
  • I have opened a PR for the related docs change (if not, why?)
    No docs related to this part.

Testing Instructions

  • Run the unit tests. (Tests have been added for 0.0 case)
  • Use a device with a resouce with valueType "Float64". Read a value of 0.0 from it.

New Dependency Instructions (If applicable)

@IkerDC IkerDC force-pushed the EF-329 branch 2 times, most recently from 22341a1 to 37fb718 Compare August 2, 2023 09:03
@codecov-commenter
Copy link

Codecov Report

Merging #330 (37fb718) into main (6984bd0) will not change coverage.
The diff coverage is 100.00%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

@@           Coverage Diff           @@
##             main     #330   +/-   ##
=======================================
  Coverage   31.95%   31.95%           
=======================================
  Files           2        2           
  Lines         363      363           
=======================================
  Hits          116      116           
  Misses        234      234           
  Partials       13       13           
Files Changed Coverage Δ
driver/resthandler.go 52.96% <100.00%> (ø)

- Removed bug of missing 0.0 check in old imlpementation.
- Adapted check range procedure to the same as in Int/Uint.

Signed-off-by: idiaz <[email protected]>

fix: Add test case for floats equal 0.0

Signed-off-by: idiaz <[email protected]>
@lenny-goodell lenny-goodell linked an issue Aug 2, 2023 that may be closed by this pull request
Copy link
Member

@lenny-goodell lenny-goodell left a comment

Choose a reason for hiding this comment

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

LGTM

@lenny-goodell lenny-goodell merged commit 89173ea into edgexfoundry:main Aug 2, 2023
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.

Value 0.0 out of float64/float32 range
4 participants