IGListKit/Tests
Andrew Monshizadeh a4e5ad862e Move section index to property
Summary:
This pull request removes the `sectionForSectionController:` method from the `IGListCollectionContext` protocol so that the protocol is exclusively for presentation methods.

This should not add new functionality, but rather makes the index directly accessible on the section controllers themselves. This change makes sense because at no time will there be an update to the list that the list adapter is unaware of and so it will always be able to set and update any indexes for a section controller that has changed.

Issue fixed: #609

- [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.
- [X] I have reviewed the [contributing guide](https://github.com/Instagram/IGListKit/blob/master/.github/CONTRIBUTING.md)
Closes https://github.com/Instagram/IGListKit/pull/671

Reviewed By: jessesquires

Differential Revision: D4942159

Pulled By: amonshiz

fbshipit-source-id: d648cfdd381cbf1d9ee7ff549ae27d2972a84622
2017-05-01 07:28:27 -07:00
..
Assets Support supplementaryViews created from nibs (continued) 2016-11-05 16:29:06 -07:00
Objects Add base test case class for simpler unit testing 2017-04-20 14:36:28 -07:00
IGListAdapterE2ETests.m Move section index to property 2017-05-01 07:28:27 -07:00
IGListAdapterProxyTests.m Test adapter proxy object 2016-11-18 11:13:59 -08:00
IGListAdapterStoryboardTests.m Init without working range size 2017-04-21 14:30:46 -07:00
IGListAdapterTests.m Move section index to property 2017-05-01 07:28:27 -07:00
IGListAdapterUpdaterTests.m Add base test case class for simpler unit testing 2017-04-20 14:36:28 -07:00
IGListBatchUpdateDataTests.m Prevent duplicate item deletes and drop reload collisions 2017-04-19 17:17:41 -07:00
IGListBindingSectionControllerTests.m Add base test case class for simpler unit testing 2017-04-20 14:36:28 -07:00
IGListCollectionViewLayoutTests.m Fixed empty space bug in CollectionView 2017-04-21 08:20:16 -07:00
IGListDebuggerTests.m Add debug dump scripts 2017-04-21 16:46:06 -07: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 Add base test case class for simpler unit testing 2017-04-20 14:36:28 -07:00
IGListDisplayHandlerTests.m Init without working range size 2017-04-21 14:30:46 -07:00
IGListGenericSectionControllerTests.m Add generic type section controller 2017-04-19 12:45:36 -07:00
IGListKitTests-Bridging-Header.h Initial commit 2016-10-11 10:12:17 -04:00
IGListSectionMapTests.m Move section index to property 2017-05-01 07:28:27 -07:00
IGListSingleNibItemControllerTests.m Add base test case class for simpler unit testing 2017-04-20 14:36:28 -07:00
IGListSingleSectionControllerTests.m Add base test case class for simpler unit testing 2017-04-20 14:36:28 -07:00
IGListSingleStoryboardItemControllerTests.m Add base test case class for simpler unit testing 2017-04-20 14:36:28 -07:00
IGListStackSectionControllerTests.m Move section index to property 2017-05-01 07:28:27 -07:00
IGListTestCase.h Add base test case class for simpler unit testing 2017-04-20 14:36:28 -07:00
IGListTestCase.m Add base test case class for simpler unit testing 2017-04-20 14:36:28 -07:00
IGListTestHelpers.h Add base test case class for simpler unit testing 2017-04-20 14:36:28 -07:00
IGListWorkingRangeHandlerTests.m Init without working range size 2017-04-21 14:30:46 -07:00
IGReloadDataUpdaterTests.m Init without working range size 2017-04-21 14:30:46 -07:00
Info.plist Initial commit 2016-10-11 10:12:17 -04:00