Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
3lvis committed Mar 16, 2017
1 parent 3433017 commit 8820414
Show file tree
Hide file tree
Showing 177 changed files with 7,526 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<model userDefinedModelVersionIdentifier="" type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="10174" systemVersion="15F34" minimumToolsVersion="Xcode 4.3">
<entity name="Note" syncable="YES">
<attribute name="remoteID" optional="YES" attributeType="String" syncable="YES"/>
<attribute name="text" optional="YES" attributeType="String" syncable="YES"/>
</entity>
<entity name="User" syncable="YES">
<attribute name="age" optional="YES" attributeType="Integer 16" defaultValueString="0" syncable="YES"/>
<attribute name="firstName" optional="YES" attributeType="String" syncable="YES"/>
<attribute name="lastName" optional="YES" attributeType="String" syncable="YES"/>
<attribute name="remoteID" optional="YES" attributeType="Integer 32" defaultValueString="0" syncable="YES"/>
</entity>
<elements>
<element name="Note" positionX="-63" positionY="9" width="128" height="75"/>
<element name="User" positionX="-63" positionY="-18" width="128" height="105"/>
</elements>
</model>
345 changes: 345 additions & 0 deletions Tests/DataFilter/DataFilterTests.swift

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions Tests/DataFilter/note.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[
{
"id": "123",
"text": "text"
}
]
14 changes: 14 additions & 0 deletions Tests/DataFilter/simple.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[
{
"id": 0,
"first_name": "Amy",
"last_name": "Juergens",
"age": 21
},
{
"id": 7,
"first_name": "Lauren",
"last_name": "Treacy",
"age": 28
},
]
34 changes: 34 additions & 0 deletions Tests/DataFilter/users-with-nil.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[
{
"id": 0,
"first_name": "Amy",
"last_name": "Juergens",
"age": 21
},
{
"id": 1,
"first_name": "Ben",
"last_name": "Boykewich",
"age": 23
},
{
"id": 2,
"first_name": "Ricky",
"last_name": "Underwood",
"age": 19
},
{
},
{
"id": 6,
"first_name": "Ashley",
"last_name": "Juergens",
"age": 18
},
{
"id": 7,
"first_name": "Lauren",
"last_name": "Treacy",
"age": 28
},
]
41 changes: 41 additions & 0 deletions Tests/DataFilter/users-with-null.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
[
{
"id": null
},
{
"id": 0,
"first_name": "Amy",
"last_name": "Juergens",
"age": 21
},
{
"id": 1,
"first_name": "Ben",
"last_name": "Boykewich",
"age": 23
},
{
"id": 2,
"first_name": "Ricky",
"last_name": "Underwood",
"age": 19
},
{
"id": 3,
"first_name": "Grace",
"last_name": "Bowman",
"age": 20
},
{
"id": 6,
"first_name": "Ashley",
"last_name": "Juergens",
"age": 18
},
{
"id": 7,
"first_name": "Lauren",
"last_name": "Treacy",
"age": 28
},
]
38 changes: 38 additions & 0 deletions Tests/DataFilter/users.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
[
{
"id": 0,
"first_name": "Amy",
"last_name": "Juergens",
"age": 21
},
{
"id": 1,
"first_name": "Ben",
"last_name": "Boykewich",
"age": 23
},
{
"id": 2,
"first_name": "Ricky",
"last_name": "Underwood",
"age": 19
},
{
"id": 3,
"first_name": "Grace",
"last_name": "Bowman",
"age": 20
},
{
"id": 6,
"first_name": "Ashley",
"last_name": "Juergens",
"age": 18
},
{
"id": 7,
"first_name": "Lauren",
"last_name": "Treacy",
"age": 28
},
]
32 changes: 32 additions & 0 deletions Tests/DataFilter/users2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
[
{
"id": 0,
"first_name": "Amy",
"last_name": "Juergens",
"age": 21
},
{
"id": 1,
"first_name": "Ben",
"last_name": "Boykewich",
"age": 23
},
{
"id": 2,
"first_name": "Ricky",
"last_name": "Underwood",
"age": 19
},
{
"id": 3,
"first_name": "Grace",
"last_name": "Bowman",
"age": 20
},
{
"id": 4,
"first_name": "Name",
"last_name": "Last",
"age": 20
}
]
2 changes: 2 additions & 0 deletions Tests/DataFilter/users3.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[
]
12 changes: 12 additions & 0 deletions Tests/DataStack/LightweightMigrationModel.xcdatamodel/contents
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<model type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="11232" systemVersion="16A323" minimumToolsVersion="Xcode 7.0" sourceLanguage="Objective-C" userDefinedModelVersionIdentifier="">
<entity name="User" syncable="YES">
<attribute name="createdDate" optional="YES" attributeType="Date" usesScalarValueType="NO" syncable="YES"/>
<attribute name="name" optional="YES" attributeType="String" syncable="YES"/>
<attribute name="remoteID" optional="YES" attributeType="Integer 32" defaultValueString="0" usesScalarValueType="NO" syncable="YES"/>
<attribute name="updatedDate" optional="YES" attributeType="Date" usesScalarValueType="NO" syncable="YES"/>
</entity>
<elements>
<element name="User" positionX="-63" positionY="-18" width="128" height="105"/>
</elements>
</model>
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<model userDefinedModelVersionIdentifier="" type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="8195" systemVersion="15B38b" minimumToolsVersion="Xcode 4.3">
<entity name="User" representedClassName="" syncable="YES">
<attribute name="createdDate" optional="YES" attributeType="Date" syncable="YES"/>
<attribute name="name" optional="YES" attributeType="String" syncable="YES"/>
<attribute name="remoteID" optional="YES" attributeType="Integer 32" defaultValueString="0" syncable="YES"/>
</entity>
<elements>
<element name="User" positionX="-54" positionY="-9" width="128" height="90"/>
</elements>
</model>
11 changes: 11 additions & 0 deletions Tests/DataStack/SimpleModel.xcdatamodel/contents
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<model userDefinedModelVersionIdentifier="" type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="10171" systemVersion="15E65" minimumToolsVersion="Xcode 7.0">
<entity name="User" syncable="YES">
<attribute name="createdDate" optional="YES" attributeType="Date" syncable="YES"/>
<attribute name="name" optional="YES" attributeType="String" syncable="YES"/>
<attribute name="remoteID" optional="YES" attributeType="Integer 32" defaultValueString="0" syncable="YES"/>
</entity>
<elements>
<element name="User" positionX="-63" positionY="-18" width="128" height="90"/>
</elements>
</model>
Loading

0 comments on commit 8820414

Please sign in to comment.