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

Instagram / IGListKit / 24539907142
99%
master: 100%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 16 Apr 2026 11:51PM UTC
Jobs 1
Files 54
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

16 Apr 2026 11:42PM UTC coverage: 98.816% (+0.005%) from 98.811%
24539907142

push

github

meta-codesync[bot]
Replace IGFailAssert with NSLog for delegate recursion checks

Summary:
The delegate recursion protection code (for GitHub issue #1658) uses IGFailAssert to warn about invalid delegate configurations. However, IGFailAssert is defined as NSCAssert which throws exceptions in debug/test builds, preventing the recovery code from executing.

This change replaces IGFailAssert with NSLog for these 4 specific cases
where the code is designed to gracefully recover:

1. When setting collectionView and _scrollViewDelegate points to it
2. When setting collectionView and _collectionViewDelegate points to it
3. When calling setCollectionViewDelegate: with the collectionView itself
4. When calling setScrollViewDelegate: with the collectionView itself

By using NSLog instead, the warning is still logged but execution continues, allowing the recovery code (clearing delegates or returning early) to run.
This fixes 23 test failures in IGListKitTests where tests were either:
- Intentionally testing the delegate protection behavior
- Inadvertently triggering the assertion when swapping adapters/collection views

Differential Revision: D101185192

fbshipit-source-id: 1f7cdc70b

8 of 8 new or added lines in 1 file covered. (100.0%)

10 existing lines in 1 file now uncovered.

4506 of 4560 relevant lines covered (98.82%)

703.97 hits per line

Coverage Regressions

Lines Coverage ∆ File
10
99.13
0.02% Source/IGListKit/IGListAdapter.m
Jobs
ID Job ID Ran Files Coverage
1 iOS - 24539907142.1 16 Apr 2026 11:51PM UTC 59
98.69
GitHub Action Run
Source Files on build 24539907142
  • Tree
  • List 54
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #24539907142
  • e3facbed on github
  • Prev Build on main (#22090533742)
  • Next Build on main (#25202427585)
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