mirror of
https://github.com/zhigang1992/MagicalRecord.git
synced 2026-05-28 23:41:21 +08:00
Add some placeholders for unit tests
This commit is contained in:
@@ -7,6 +7,11 @@
|
||||
objects = {
|
||||
|
||||
/* Begin PBXBuildFile section */
|
||||
C70B6E7113D0F62500709450 /* NSPersisentStoreHelperTests.m in Sources */ = {isa = PBXBuildFile; fileRef = C70B6E7013D0F62500709450 /* NSPersisentStoreHelperTests.m */; };
|
||||
C70B6E7413D0F64000709450 /* NSPersistentStoreCoordinatorHelperTests.m in Sources */ = {isa = PBXBuildFile; fileRef = C70B6E7313D0F64000709450 /* NSPersistentStoreCoordinatorHelperTests.m */; };
|
||||
C70B6E7713D0F66000709450 /* NSManagedObjectModelHelperTests.m in Sources */ = {isa = PBXBuildFile; fileRef = C70B6E7613D0F66000709450 /* NSManagedObjectModelHelperTests.m */; };
|
||||
C70B6E7A13D0F68400709450 /* NSManagedObjectContextHelperTests.m in Sources */ = {isa = PBXBuildFile; fileRef = C70B6E7913D0F68400709450 /* NSManagedObjectContextHelperTests.m */; };
|
||||
C70B6E7D13D0F69A00709450 /* NSManagedObjectHelperTests.m in Sources */ = {isa = PBXBuildFile; fileRef = C70B6E7C13D0F69A00709450 /* NSManagedObjectHelperTests.m */; };
|
||||
C721C7DF13D0C3A00097AB6F /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C721C7DE13D0C3A00097AB6F /* Cocoa.framework */; };
|
||||
C721C7E913D0C3A00097AB6F /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = C721C7E713D0C3A00097AB6F /* InfoPlist.strings */; };
|
||||
C721C7EB13D0C3A00097AB6F /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = C721C7EA13D0C3A00097AB6F /* main.m */; };
|
||||
@@ -53,6 +58,16 @@
|
||||
/* End PBXBuildFile section */
|
||||
|
||||
/* Begin PBXFileReference section */
|
||||
C70B6E6F13D0F62500709450 /* NSPersisentStoreHelperTests.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = NSPersisentStoreHelperTests.h; path = "Unit Tests/NSPersisentStoreHelperTests.h"; sourceTree = "<group>"; };
|
||||
C70B6E7013D0F62500709450 /* NSPersisentStoreHelperTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = NSPersisentStoreHelperTests.m; path = "Unit Tests/NSPersisentStoreHelperTests.m"; sourceTree = "<group>"; };
|
||||
C70B6E7213D0F64000709450 /* NSPersistentStoreCoordinatorHelperTests.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = NSPersistentStoreCoordinatorHelperTests.h; path = "Unit Tests/NSPersistentStoreCoordinatorHelperTests.h"; sourceTree = "<group>"; };
|
||||
C70B6E7313D0F64000709450 /* NSPersistentStoreCoordinatorHelperTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = NSPersistentStoreCoordinatorHelperTests.m; path = "Unit Tests/NSPersistentStoreCoordinatorHelperTests.m"; sourceTree = "<group>"; };
|
||||
C70B6E7513D0F66000709450 /* NSManagedObjectModelHelperTests.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = NSManagedObjectModelHelperTests.h; path = "Unit Tests/NSManagedObjectModelHelperTests.h"; sourceTree = "<group>"; };
|
||||
C70B6E7613D0F66000709450 /* NSManagedObjectModelHelperTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = NSManagedObjectModelHelperTests.m; path = "Unit Tests/NSManagedObjectModelHelperTests.m"; sourceTree = "<group>"; };
|
||||
C70B6E7813D0F68400709450 /* NSManagedObjectContextHelperTests.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = NSManagedObjectContextHelperTests.h; path = "Unit Tests/NSManagedObjectContextHelperTests.h"; sourceTree = "<group>"; };
|
||||
C70B6E7913D0F68400709450 /* NSManagedObjectContextHelperTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = NSManagedObjectContextHelperTests.m; path = "Unit Tests/NSManagedObjectContextHelperTests.m"; sourceTree = "<group>"; };
|
||||
C70B6E7B13D0F69A00709450 /* NSManagedObjectHelperTests.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = NSManagedObjectHelperTests.h; path = "Unit Tests/NSManagedObjectHelperTests.h"; sourceTree = "<group>"; };
|
||||
C70B6E7C13D0F69A00709450 /* NSManagedObjectHelperTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = NSManagedObjectHelperTests.m; path = "Unit Tests/NSManagedObjectHelperTests.m"; sourceTree = "<group>"; };
|
||||
C721C7DC13D0C3A00097AB6F /* Mac App Unit Tests.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Mac App Unit Tests.app"; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
C721C7DE13D0C3A00097AB6F /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = System/Library/Frameworks/Cocoa.framework; sourceTree = SDKROOT; };
|
||||
C721C7E113D0C3A00097AB6F /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = System/Library/Frameworks/AppKit.framework; sourceTree = SDKROOT; };
|
||||
@@ -358,6 +373,16 @@
|
||||
C77E5FA713D0CBDE00298F87 /* MagicalRecordHelperTests.m */,
|
||||
C77E5FB613D0D25100298F87 /* DataImportTests.h */,
|
||||
C77E5FB713D0D25100298F87 /* DataImportTests.m */,
|
||||
C70B6E6F13D0F62500709450 /* NSPersisentStoreHelperTests.h */,
|
||||
C70B6E7013D0F62500709450 /* NSPersisentStoreHelperTests.m */,
|
||||
C70B6E7213D0F64000709450 /* NSPersistentStoreCoordinatorHelperTests.h */,
|
||||
C70B6E7313D0F64000709450 /* NSPersistentStoreCoordinatorHelperTests.m */,
|
||||
C70B6E7513D0F66000709450 /* NSManagedObjectModelHelperTests.h */,
|
||||
C70B6E7613D0F66000709450 /* NSManagedObjectModelHelperTests.m */,
|
||||
C70B6E7813D0F68400709450 /* NSManagedObjectContextHelperTests.h */,
|
||||
C70B6E7913D0F68400709450 /* NSManagedObjectContextHelperTests.m */,
|
||||
C70B6E7B13D0F69A00709450 /* NSManagedObjectHelperTests.h */,
|
||||
C70B6E7C13D0F69A00709450 /* NSManagedObjectHelperTests.m */,
|
||||
);
|
||||
name = "Unit Tests";
|
||||
sourceTree = "<group>";
|
||||
@@ -525,6 +550,11 @@
|
||||
C77E5FC113D0D55300298F87 /* _SingleEntityWithNoRelationships.m in Sources */,
|
||||
C77E5FC213D0D55300298F87 /* SingleEntityWithNoRelationships.m in Sources */,
|
||||
C75A4E7313D0D88D00790CEB /* NSManagedObject+MagicalDataImport.m in Sources */,
|
||||
C70B6E7113D0F62500709450 /* NSPersisentStoreHelperTests.m in Sources */,
|
||||
C70B6E7413D0F64000709450 /* NSPersistentStoreCoordinatorHelperTests.m in Sources */,
|
||||
C70B6E7713D0F66000709450 /* NSManagedObjectModelHelperTests.m in Sources */,
|
||||
C70B6E7A13D0F68400709450 /* NSManagedObjectContextHelperTests.m in Sources */,
|
||||
C70B6E7D13D0F69A00709450 /* NSManagedObjectHelperTests.m in Sources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -6,7 +6,9 @@
|
||||
// Copyright 2011 Magical Panda Software LLC. All rights reserved.
|
||||
//
|
||||
|
||||
#import "NSManagedObject+MagicalDataImport.h"
|
||||
//#import "NSManagedObject+MagicalDataImport.h"
|
||||
#import "CoreData+MagicalRecord.h"
|
||||
|
||||
|
||||
static NSString * const kNSManagedObjectDefaultDateFormatString = @"YYYY-MM-dd'T'HH:mm:ss'Z'";
|
||||
static NSString * const kNSManagedObjectAttributeJSONKeyMapKey = @"jsonKeyName";
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
// Copyright 2010 Magical Panda Software, LLC All rights reserved.
|
||||
//
|
||||
|
||||
#import "NSManagedObject+MagicalRecord.h"
|
||||
//#import "NSManagedObject+MagicalRecord.h"
|
||||
#import "CoreData+MagicalRecord.h"
|
||||
|
||||
static NSUInteger defaultBatchSize = kMagicalRecordDefaultBatchSize;
|
||||
|
||||
@@ -6,7 +6,9 @@
|
||||
// Copyright 2010 Magical Panda Software, LLC All rights reserved.
|
||||
//
|
||||
|
||||
#import "NSManagedObjectModel+MagicalRecord.h"
|
||||
//#import "NSManagedObjectModel+MagicalRecord.h"
|
||||
#import "CoreData+MagicalRecord.h"
|
||||
|
||||
|
||||
static NSManagedObjectModel *defaultManagedObjectModel = nil;
|
||||
|
||||
|
||||
@@ -5,7 +5,8 @@
|
||||
// Copyright 2010 Magical Panda Software, LLC All rights reserved.
|
||||
//
|
||||
|
||||
#import "NSPersistentStore+MagicalRecord.h"
|
||||
//#import "NSPersistentStore+MagicalRecord.h"
|
||||
#import "CoreData+MagicalRecord.h"
|
||||
|
||||
NSString * const kMagicalRecordDefaultStoreFileName = @"CoreDataStore.sqlite";
|
||||
|
||||
|
||||
@@ -5,9 +5,11 @@
|
||||
// Copyright 2010 Magical Panda Software, LLC All rights reserved.
|
||||
//
|
||||
|
||||
#import "NSPersistentStoreCoordinator+MagicalRecord.h"
|
||||
#import "NSManagedObjectModel+MagicalRecord.h"
|
||||
#import "NSPersistentStore+MagicalRecord.h"
|
||||
#import "CoreData+MagicalRecord.h"
|
||||
|
||||
//#import "NSPersistentStoreCoordinator+MagicalRecord.h"
|
||||
//#import "NSManagedObjectModel+MagicalRecord.h"
|
||||
//#import "NSPersistentStore+MagicalRecord.h"
|
||||
|
||||
static NSPersistentStoreCoordinator *defaultCoordinator = nil;
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// Copyright 2010 Magical Panda Software, LLC All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import <CoreData/CoreData.h>
|
||||
//#import <Foundation/Foundation.h>
|
||||
//#import <CoreData/CoreData.h>
|
||||
|
||||
#ifdef NS_BLOCKS_AVAILABLE
|
||||
|
||||
|
||||
13
Unit Tests/NSManagedObjectContextHelperTests.h
Normal file
13
Unit Tests/NSManagedObjectContextHelperTests.h
Normal file
@@ -0,0 +1,13 @@
|
||||
//
|
||||
// NSManagedObjectContextHelperTests.h
|
||||
// Magical Record
|
||||
//
|
||||
// Created by Saul Mora on 7/15/11.
|
||||
// Copyright 2011 Magical Panda Software LLC. All rights reserved.
|
||||
//
|
||||
|
||||
|
||||
|
||||
@interface NSManagedObjectContextHelperTests : GHTestCase
|
||||
|
||||
@end
|
||||
15
Unit Tests/NSManagedObjectContextHelperTests.m
Normal file
15
Unit Tests/NSManagedObjectContextHelperTests.m
Normal file
@@ -0,0 +1,15 @@
|
||||
//
|
||||
// NSManagedObjectContextHelperTests.m
|
||||
// Magical Record
|
||||
//
|
||||
// Created by Saul Mora on 7/15/11.
|
||||
// Copyright 2011 Magical Panda Software LLC. All rights reserved.
|
||||
//
|
||||
|
||||
#import "NSManagedObjectContextHelperTests.h"
|
||||
|
||||
@implementation NSManagedObjectContextHelperTests
|
||||
|
||||
|
||||
|
||||
@end
|
||||
13
Unit Tests/NSManagedObjectHelperTests.h
Normal file
13
Unit Tests/NSManagedObjectHelperTests.h
Normal file
@@ -0,0 +1,13 @@
|
||||
//
|
||||
// NSManagedObjectHelperTests.h
|
||||
// Magical Record
|
||||
//
|
||||
// Created by Saul Mora on 7/15/11.
|
||||
// Copyright 2011 Magical Panda Software LLC. All rights reserved.
|
||||
//
|
||||
|
||||
|
||||
|
||||
@interface NSManagedObjectHelperTests : GHTestCase
|
||||
|
||||
@end
|
||||
14
Unit Tests/NSManagedObjectHelperTests.m
Normal file
14
Unit Tests/NSManagedObjectHelperTests.m
Normal file
@@ -0,0 +1,14 @@
|
||||
//
|
||||
// NSManagedObjectHelperTests.m
|
||||
// Magical Record
|
||||
//
|
||||
// Created by Saul Mora on 7/15/11.
|
||||
// Copyright 2011 Magical Panda Software LLC. All rights reserved.
|
||||
//
|
||||
|
||||
#import "NSManagedObjectHelperTests.h"
|
||||
|
||||
@implementation NSManagedObjectHelperTests
|
||||
|
||||
|
||||
@end
|
||||
13
Unit Tests/NSManagedObjectModelHelperTests.h
Normal file
13
Unit Tests/NSManagedObjectModelHelperTests.h
Normal file
@@ -0,0 +1,13 @@
|
||||
//
|
||||
// NSManagedObjectModelHelperTests.h
|
||||
// Magical Record
|
||||
//
|
||||
// Created by Saul Mora on 7/15/11.
|
||||
// Copyright 2011 Magical Panda Software LLC. All rights reserved.
|
||||
//
|
||||
|
||||
|
||||
|
||||
@interface NSManagedObjectModelHelperTests : GHTestCase
|
||||
|
||||
@end
|
||||
14
Unit Tests/NSManagedObjectModelHelperTests.m
Normal file
14
Unit Tests/NSManagedObjectModelHelperTests.m
Normal file
@@ -0,0 +1,14 @@
|
||||
//
|
||||
// NSManagedObjectModelHelperTests.m
|
||||
// Magical Record
|
||||
//
|
||||
// Created by Saul Mora on 7/15/11.
|
||||
// Copyright 2011 Magical Panda Software LLC. All rights reserved.
|
||||
//
|
||||
|
||||
#import "NSManagedObjectModelHelperTests.h"
|
||||
|
||||
@implementation NSManagedObjectModelHelperTests
|
||||
|
||||
|
||||
@end
|
||||
13
Unit Tests/NSPersisentStoreHelperTests.h
Normal file
13
Unit Tests/NSPersisentStoreHelperTests.h
Normal file
@@ -0,0 +1,13 @@
|
||||
//
|
||||
// NSPersisentStoreHelperTests.h
|
||||
// Magical Record
|
||||
//
|
||||
// Created by Saul Mora on 7/15/11.
|
||||
// Copyright 2011 Magical Panda Software LLC. All rights reserved.
|
||||
//
|
||||
|
||||
|
||||
|
||||
@interface NSPersisentStoreHelperTests : GHTestCase
|
||||
|
||||
@end
|
||||
14
Unit Tests/NSPersisentStoreHelperTests.m
Normal file
14
Unit Tests/NSPersisentStoreHelperTests.m
Normal file
@@ -0,0 +1,14 @@
|
||||
//
|
||||
// NSPersisentStoreHelperTests.m
|
||||
// Magical Record
|
||||
//
|
||||
// Created by Saul Mora on 7/15/11.
|
||||
// Copyright 2011 Magical Panda Software LLC. All rights reserved.
|
||||
//
|
||||
|
||||
#import "NSPersisentStoreHelperTests.h"
|
||||
|
||||
@implementation NSPersisentStoreHelperTests
|
||||
|
||||
|
||||
@end
|
||||
13
Unit Tests/NSPersistentStoreCoordinatorHelperTests.h
Normal file
13
Unit Tests/NSPersistentStoreCoordinatorHelperTests.h
Normal file
@@ -0,0 +1,13 @@
|
||||
//
|
||||
// NSPersistentStoreCoordinatorHelperTests.h
|
||||
// Magical Record
|
||||
//
|
||||
// Created by Saul Mora on 7/15/11.
|
||||
// Copyright 2011 Magical Panda Software LLC. All rights reserved.
|
||||
//
|
||||
|
||||
|
||||
|
||||
@interface NSPersistentStoreCoordinatorHelperTests : GHTestCase
|
||||
|
||||
@end
|
||||
14
Unit Tests/NSPersistentStoreCoordinatorHelperTests.m
Normal file
14
Unit Tests/NSPersistentStoreCoordinatorHelperTests.m
Normal file
@@ -0,0 +1,14 @@
|
||||
//
|
||||
// NSPersistentStoreCoordinatorHelperTests.m
|
||||
// Magical Record
|
||||
//
|
||||
// Created by Saul Mora on 7/15/11.
|
||||
// Copyright 2011 Magical Panda Software LLC. All rights reserved.
|
||||
//
|
||||
|
||||
#import "NSPersistentStoreCoordinatorHelperTests.h"
|
||||
|
||||
@implementation NSPersistentStoreCoordinatorHelperTests
|
||||
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user