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

stephenafamo / bob / 16125232731 / 1
36%
main: 43%

Build:
Build:
LAST BUILD BRANCH: error-empty-set
DEFAULT BRANCH: main
Ran 08 Jul 2025 09:19AM UTC
Files 214
Run time 8s
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

07 Jul 2025 06:43PM UTC coverage: 36.474%. Remained the same
16125232731.1

Pull #470

github

dutow
Add a WithExisting<Rel> function to one to many relations

Currently the factory code forcefully sets a template for required
relations if one isn't specified manually, even if the using code
manually specifies IDs for foreign keys.

With optional relations, it is possible to specify existing already
persisted records by setting the ID instead of the relation in a
template. With required relations, this is impossible because of the
above.

This commit lets users to select existing entries to one to many relations
with specifying an existing record.

The commit also introduces related generic functions, for example now it
is possible to use the FromExisting<Relation> functions in the main
Factory class, and return templates that are based on existing records,
and then can be customized further.
Pull Request #470: Factories should support using existing entries for required relations

8172 of 22405 relevant lines covered (36.47%)

273.91 hits per line

Source Files on job go-stable - 16125232731.1
  • Tree
  • List 214
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 16125232731
  • 7bb0934a on github
  • Prev Job for on existing_relations (#16101563563.1)
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

© 2026 Coveralls, Inc