• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

trevershick / java-faker
94%

Build:
DEFAULT BRANCH: master
Repo Added 15 Oct 2016 06:51PM UTC
Files 33
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH master
branch: master
CHANGE BRANCH
x
Reset
  • master
  • ensure_error_messages_are_useful

pending completion
#1

push

codingricky
Add arguments to YML directives (#135)

resolves DiUS/java-faker#134 (closed PR)

The idea to use arguments in resolve was closely related to something i wanted to do which is to put the power of
letterify, numberify and regexify into the YML expression language.  This allows for more complicated expressions
that can be sculpted to be more correct without having to write java.

Now you can use something like #{regexify '[45]{2}ABC'} and it will work returning either 4ABC or 5ABC.  This should
help in creating more correct phone numbers, area codes, etc...

Any method exposed on Faker, even with arguments will work.

Even #{bothify '##??','true'} will work.  While all arguments are 'strings' in the YML, they are coerced to the appropriate
type prior to calling the method in Faker, so this expression will result in faker.bothify("##??", true).

780 of 827 relevant lines covered (94.32%)

5056.1 hits per line

Relevant lines Covered
Build:
Build:
827 RELEVANT LINES 780 COVERED LINES
5056.1 HITS PER LINE
Source Files on master
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
#1 master Add arguments to YML directives (#135) resolves DiUS/java-faker#134 (closed PR) The idea to use arguments in resolve was closely related to something i wanted to do which is to put the power of letterify, numberify and regexify into the YML e... push 15 Oct 2016 06:55PM UTC codingricky pending completion  
See All Builds (4)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc