Closed kingthorin closed 1 week ago
Enhancement of Directive Evaluation in FakeValuesService
In FakeValuesService.java
, we've introduced a safety measure, in the form of a condition check. Now before any directive is added to the list of results, the system makes sure that it is "simple", improving the overall quality of data processed.
Additional Import in FakeValuesServiceTest
In our test file FakeValuesServiceTest.java
, we've added an import for LuhnCheckDigit
. This is a utility which allows us to perform certain checks, therefore enhancing our testing capabilities.
New Test Method: expressionWithSingleEnumArg
In order to increase the robustness of our tests, a new test method named expressionWithSingleEnumArg()
has been added to FakeValuesServiceTest.java
. This aims to scrutinize an expression with a single enum argument, helping reinforce our testing parameters.
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 91.98%. Comparing base (
b37c566
) to head (d51e19c
). Report is 173 commits behind head on main.
:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
@kingthorin Thank you for fixing it!
No problem. I'm just trying to give the other devs a chance to see it incase I've overlooked something. If there's nothing else in the next few days I'll go ahead and merge it.
@kingthorin I've tried your fix: works for me.
Great, thanks!
If an expression has arguments it shouldn't be treated as "simple".
Tweak FaverValueService logic and add test to FakerValueServiceTest.
Fixes datafaker-net/datafaker#1274