Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Implement seperate methods for integer and double #31

Merged
merged 1 commit into from
Aug 4, 2022

Conversation

benjiro
Copy link
Member

@benjiro benjiro commented Aug 4, 2022

As per the recent spec change open-feature/spec#116

  • Add GetDoubleValue, GetDoubleDetails and ResolveDoubleValue to FeatureProvider interface
    and FeatureClient
  • [Breaking change] Rename GetNumberValue, GetNumberDetails to GetIntegerValue, GetIntegerDetails
  • Add tests for new methods

- Add GetDoubleValue, GetDoubleDetails and ResolveDoubleValue to FeatureProvider interface
and FeatureClient
- Rename GetNumberValue, GetNumberDetails to GetIntegerValue, GetIntegerDetails
- Add tests for new methods

Signed-off-by: Benjamin Evenson <2031163+benjiro@users.noreply.github.com>
@codecov-commenter
Copy link

Codecov Report

Merging #31 (778fa9b) into main (4446810) will increase coverage by 0.34%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main      #31      +/-   ##
==========================================
+ Coverage   99.32%   99.66%   +0.34%     
==========================================
  Files          15       15              
  Lines         297      303       +6     
  Branches       22       22              
==========================================
+ Hits          295      302       +7     
+ Partials        2        1       -1     
Impacted Files Coverage Δ
src/OpenFeature/Constant/Reason.cs 100.00% <ø> (ø)
src/OpenFeature/Error/FeatureProviderException.cs 100.00% <ø> (ø)
src/OpenFeature/Extension/EnumExtensions.cs 100.00% <ø> (ø)
...enFeature/Extension/ResolutionDetailsExtensions.cs 100.00% <ø> (ø)
src/OpenFeature/Hook.cs 100.00% <ø> (ø)
src/OpenFeature/Model/ClientMetadata.cs 100.00% <ø> (ø)
src/OpenFeature/Model/EvaluationContext.cs 100.00% <ø> (ø)
src/OpenFeature/Model/FlagEvaluationOptions.cs 100.00% <ø> (ø)
src/OpenFeature/Model/FlagEvalusationDetails.cs 100.00% <ø> (ø)
src/OpenFeature/Model/HookContext.cs 100.00% <ø> (ø)
... and 6 more

📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

@benjiro benjiro merged commit 090c858 into main Aug 4, 2022
@benjiro benjiro added the breaking-change Changes in exposed interfaces or behaviour label Aug 11, 2022
@benjiro benjiro deleted the feat/implement-different-types branch August 14, 2022 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking-change Changes in exposed interfaces or behaviour
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants