From ebbc90961b8162079039eaf869ed447033375a29 Mon Sep 17 00:00:00 2001 From: Tim Oliver Date: Fri, 6 Oct 2023 03:08:34 -0700 Subject: [PATCH] Add coverage to updater class Summary: This diff adds a small, essentially no-op test to add coverage to the `isInDataUpdateBlock` method of `IGListReloadDataUpdater`. Differential Revision: D49906263 fbshipit-source-id: e59a04721d6af58cc2b6148cd688be8225bf3fb8 --- Tests/IGListReloadDataUpdaterTests.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Tests/IGListReloadDataUpdaterTests.m b/Tests/IGListReloadDataUpdaterTests.m index 492ed989e..d9a610b59 100644 --- a/Tests/IGListReloadDataUpdaterTests.m +++ b/Tests/IGListReloadDataUpdaterTests.m @@ -58,6 +58,10 @@ - (void)test_whenCompletionBlockExists_thatBlockExecuted { XCTAssertTrue(executed); } +- (void)test_thatDataUpdateBlockStateIsAvailable { + XCTAssertTrue(!self.adapter.updater.isInDataUpdateBlock); +} + - (void)test_whenInsertingIntoContext_thatCollectionViewUpdated { self.dataSource.objects = @[@2]; [self.adapter reloadDataWithCompletion:nil];