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

stephenafamo / bob / 16125232731
36%
main: 42%

Build:
Build:
LAST BUILD BRANCH: query-test-hook
DEFAULT BRANCH: main
Ran 08 Jul 2025 09:19AM UTC
Jobs 1
Files 214
Run time 1min
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

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

Jobs
ID Job ID Ran Files Coverage
1 go-stable - 16125232731.1 08 Jul 2025 09:19AM UTC 214
36.47
GitHub Action Run
Source Files on build 16125232731
  • Tree
  • List 214
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #470
  • PR Base - main (#16101563563)
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