From 303fea4ebe52a8a599b6c501bbb95bd97f23e85c Mon Sep 17 00:00:00 2001 From: John Rommel Estropia Date: Sun, 21 May 2017 08:51:38 +0900 Subject: [PATCH] fix warnings --- CoreStoreTests/BridgingTests.m | 32 ------------------- ...reStore+CustomDebugStringConvertible.swift | 2 +- 2 files changed, 1 insertion(+), 33 deletions(-) diff --git a/CoreStoreTests/BridgingTests.m b/CoreStoreTests/BridgingTests.m index 522cd45..fd248b9 100644 --- a/CoreStoreTests/BridgingTests.m +++ b/CoreStoreTests/BridgingTests.m @@ -253,37 +253,5 @@ } [self waitForExpectationsWithTimeout:10 handler:nil]; } - -#if TARGET_OS_IOS || TARGET_OS_WATCHOS || TARGET_OS_TV - -- (void)test_ThatDataStacks_CanCreateCustomFetchedResultsControllers { - - [CSCoreStore - setDefaultStack:[[CSDataStack alloc] - initWithModelName:@"Model" - bundle:[NSBundle bundleForClass:[self class]] - versionChain:nil]]; - [CSCoreStore - addInMemoryStorageAndWait:[CSInMemoryStore new] - error:nil]; - NSFetchedResultsController *controller = - [[CSCoreStore defaultStack] - createFetchedResultsControllerFrom:CSFromClass([TestEntity1 class]) - sectionBy:[CSSectionBy keyPath:CSKeyPath(TestEntity1, testString)] - fetchClauses:@[CSWhereFormat(@"%K > %d", CSKeyPath(TestEntity1, testEntityID), 100), - CSOrderByKeys(CSSortAscending(CSKeyPath(TestEntity1, testString)), nil), - CSTweakRequest(^(NSFetchRequest *fetchRequest) { fetchRequest.fetchLimit = 10; })]]; - - XCTAssertNotNil(controller); - XCTAssertEqualObjects(controller.fetchRequest.entity.managedObjectClassName, [[TestEntity1 class] description]); - XCTAssertEqualObjects(controller.sectionNameKeyPath, CSKeyPath(TestEntity1, testString)); - XCTAssertEqualObjects(controller.fetchRequest.predicate, - CSWhereFormat(@"%K > %d", CSKeyPath(TestEntity1, testEntityID), 100).predicate); - XCTAssertEqualObjects(controller.fetchRequest.sortDescriptors, - CSOrderByKeys(CSSortAscending(CSKeyPath(TestEntity1, testString)), nil).sortDescriptors); - XCTAssertEqual(controller.fetchRequest.fetchLimit, 10); -} - -#endif @end diff --git a/Sources/CoreStore+CustomDebugStringConvertible.swift b/Sources/CoreStore+CustomDebugStringConvertible.swift index 2ab49fb..6ee2776 100644 --- a/Sources/CoreStore+CustomDebugStringConvertible.swift +++ b/Sources/CoreStore+CustomDebugStringConvertible.swift @@ -233,7 +233,7 @@ extension Entity: CustomDebugStringConvertible, CoreStoreDebugStringConvertible ("type", self.type), ("entityName", self.entityName), ("isAbstract", self.isAbstract), - ("versionHashModifier", self.versionHashModifier) + ("versionHashModifier", self.versionHashModifier as Any) ) } }