IGListKit/Tests
Ryan Nystrom 9c37fbf8a4 Handle nil section controllers from data source
Summary:
Removing the assert and handling `nil` section controllers. This wont effect Swift code which demands a non-optional section controller, but Objective-C is more nuanced. There is evidence that some callers do not have a default state and are returning `nil`.

Unfortunately this will [OOB here](https://github.com/Instagram/IGListKit/blob/master/Source/Internal/IGListSectionMap.m#L63) if using the original `objects` array provided by the data source. Instead we prune the array, only allowing in objects that have a matching section controller.

Fixes t15773862 internally.

- [x] All tests pass. Demo project builds and runs.
- [x] I added tests, an experiment, or detailed why my change isn't tested.
- [x] I added an entry to the `CHANGELOG.md` for any breaking changes, enhancements, or bug fixes.
Closes https://github.com/Instagram/IGListKit/pull/488

Reviewed By: dshahidehpour

Differential Revision: D4553886

Pulled By: rnystrom

fbshipit-source-id: a473a99b5eb513e4b610019dba0394a014193fc4
2017-02-14 08:01:47 -08:00
..
Assets Support supplementaryViews created from nibs (continued) 2016-11-05 16:29:06 -07:00
Objects Handle nil section controllers from data source 2017-02-14 08:01:47 -08:00
IGListAdapterE2ETests.m Add item-level moves to IGListCollectionContext 2017-02-10 18:01:18 -08:00
IGListAdapterProxyTests.m Test adapter proxy object 2016-11-18 11:13:59 -08:00
IGListAdapterStoryboardTests.m Support supplementaryViews created from storyboard 2016-11-01 10:59:21 -07:00
IGListAdapterTests.m Handle nil section controllers from data source 2017-02-14 08:01:47 -08:00
IGListAdapterUpdaterTests.m Add allowsBackgroundReloading Flag to ListAdapterUpdater to Give User Control of Behavior 2017-01-03 10:44:04 -08:00
IGListBatchUpdateDataTests.m Add item-level moves to IGListCollectionContext 2017-02-10 18:01:18 -08:00
IGListCollectionViewLayoutTests.m Vertical UICollectionViewLayout supporting inline sections (take 2) 2017-02-10 18:01:22 -08:00
IGListCollectionViewTests.m disables prefetchEnabled by default 2016-12-13 07:13:58 -08:00
IGListDiffResultTests.m Test move sorting and pointer equality 2016-11-18 13:28:59 -08:00
IGListDiffSwiftTests.swift Remove NSObject+IGListDiffable category 2016-11-21 16:59:00 -08:00
IGListDiffTests.h Initial commit 2016-10-11 10:12:17 -04:00
IGListDiffTests.m Convert NSUInteger to NSInteger 2017-01-22 14:44:14 -08:00
IGListDisplayHandlerTests.m Consider supplementary views when sending display events 2017-02-13 07:01:13 -08:00
IGListKitTests-Bridging-Header.h Initial commit 2016-10-11 10:12:17 -04:00
IGListSectionMapTests.m Swap NSUInteger to NSInteger Public API 2016-11-16 15:28:59 -08:00
IGListSingleNibItemControllerTests.m Rename *ItemController unit tests to *SectionController 2016-10-28 07:44:16 -07:00
IGListSingleSectionControllerTests.m Added object to single section selection delegate callback 2017-01-11 15:14:01 -08:00
IGListSingleStoryboardItemControllerTests.m Support supplementaryViews created from storyboard 2016-11-01 10:59:21 -07:00
IGListStackSectionControllerTests.m Add item-level moves to IGListCollectionContext 2017-02-10 18:01:18 -08:00
IGListWorkingRangeHandlerTests.m Fixes crash when accessing a cell within working range updates 2016-11-18 09:59:01 -08:00
IGReloadDataUpdaterTests.m Add item-level moves to IGListCollectionContext 2017-02-10 18:01:18 -08:00
Info.plist Initial commit 2016-10-11 10:12:17 -04:00