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

stephenafamo / bob / 16011675150
36%
main: 42%

Build:
Build:
LAST BUILD BRANCH: query-test-hook
DEFAULT BRANCH: main
Ran 02 Jul 2025 06:55AM 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

01 Jul 2025 10:25PM UTC coverage: 36.468%. Remained the same
16011675150

Pull #470

github

dutow
Factories should support using existing entries for required 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 basically unifies the behavior between the two: before
forcing a relation template, it checks if the foreign key field(s) are
specified manually. If yes, it skips the generation of a new entry for
the relation.

When using multi column foreign keys it also verifies that either all
keys should be set, or none.
Pull Request #470: Factories should support using existing entries for required relations

8170 of 22403 relevant lines covered (36.47%)

266.89 hits per line

Jobs
ID Job ID Ran Files Coverage
1 go-stable - 16011675150.1 02 Jul 2025 06:55AM UTC 214
36.47
GitHub Action Run
Source Files on build 16011675150
  • 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 (#16002849392)
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