From b746af936d995e17140de98b0a3a82ee47ed7e35 Mon Sep 17 00:00:00 2001 From: Tim Oliver Date: Mon, 17 Apr 2023 20:41:49 -0700 Subject: [PATCH] Added extra test case to IGTestDelegateController Summary: Added making a call to the supplementary view data source in IGTestDelegateController so that codepath gets the same test exposure as the regular cell mechanism. Reviewed By: candance Differential Revision: D45004843 fbshipit-source-id: 6d3140ebc59da5ba4b7a151f6f104cdbd63418c2 --- Tests/Objects/IGTestDelegateController.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Tests/Objects/IGTestDelegateController.m b/Tests/Objects/IGTestDelegateController.m index a2db477f..ceafdc8d 100644 --- a/Tests/Objects/IGTestDelegateController.m +++ b/Tests/Objects/IGTestDelegateController.m @@ -85,6 +85,9 @@ - (void)listAdapter:(IGListAdapter *)listAdapter sectionControllerWillEnterWorkingRange:(IGListSectionController *)sectionController { __unused UICollectionViewCell *cell = [self.collectionContext cellForItemAtIndex:0 sectionController:self]; + __unused UIView *supplementaryView = [self.collectionContext viewForSupplementaryElementOfKind:UICollectionElementKindSectionHeader + atIndex:0 + sectionController:self]; } - (void)listAdapter:(IGListAdapter *)listAdapter sectionControllerDidExitWorkingRange:(IGListSectionController *)sectionController {}