datafaker-net / datafaker

Generating fake data for the JVM (Java, Kotlin, Groovy) has never been easier!
https://www.datafaker.net
Apache License 2.0
1.09k stars 151 forks source link

fix: expressions resolution #1275

Closed kingthorin closed 1 week ago

kingthorin commented 1 week ago

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

what-the-diff[bot] commented 1 week ago

PR Summary

codecov-commenter commented 1 week ago

Codecov Report

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.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1275 +/- ## ============================================ - Coverage 92.35% 91.98% -0.37% - Complexity 2821 3092 +271 ============================================ Files 292 310 +18 Lines 5609 6053 +444 Branches 599 637 +38 ============================================ + Hits 5180 5568 +388 - Misses 275 323 +48 - Partials 154 162 +8 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

panilya commented 1 week ago

@kingthorin Thank you for fixing it!

kingthorin commented 1 week ago

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.

asolntsev commented 1 week ago

@kingthorin I've tried your fix: works for me.

kingthorin commented 1 week ago

Great, thanks!