{"action":"created","comment":{"url":"https://api.github.com/repos/QuarkX/Quark/pulls/comments/73469255","id":73469255,"diff_hunk":"@@ -0,0 +1,209 @@\n+import XCTest\n+import Quark\n+\n+struct Person : Equatable {\n+    var firstName: String\n+    var lastName: String\n+    var age: Int\n+\n+    init(firstName: String, lastName: String, age: Int) {\n+        self.firstName = firstName\n+        self.lastName = lastName\n+        self.age = age\n+    }\n+}\n+\n+func == (lhs: Person, rhs: Person) -> Bool {\n+    return lhs.firstName == rhs.firstName && lhs.lastName == rhs.lastName && lhs.age == rhs.age\n+}\n+\n+class ReferencePerson : Initializable, Equatable {\n+    var firstName: String\n+    var lastName: String\n+    var age: Int\n+\n+    required init() {\n+        self.firstName = \"\"\n+        self.lastName = \"\"\n+        self.age = 0\n+    }\n+\n+    init(firstName: String, lastName: String, age: Int) {\n+        self.firstName = firstName\n+        self.lastName = lastName\n+        self.age = age\n+    }\n+}\n+\n+class SubclassedPerson : ReferencePerson {}\n+\n+func == (lhs: ReferencePerson, rhs: ReferencePerson) -> Bool {\n+    return lhs.firstName == rhs.firstName && lhs.lastName == rhs.lastName && lhs.age == rhs.age\n+}\n+\n+class PublicTests : XCTestCase {\n+    func testConstructType() {\n+        for _ in 0..<1000 {\n+            do {\n+                let person: Person = try construct {\n+                    ([\"firstName\": \"Brad\", \"lastName\": \"Hilton\", \"age\": 27] as [String : Any])[$0.key]!\n+                }\n+                let other = Person(firstName: \"Brad\", lastName: \"Hilton\", age: 27)\n+                XCTAssert(person == other)\n+            } catch {\n+                XCTFail(String(error))\n+            }\n+        }\n+    }\n+\n+    func testConstructReferenceType() {\n+        for _ in 0..<1000 {\n+            do {\n+                let person: ReferencePerson = try construct {\n+                    ([\"firstName\": \"Brad\", \"lastName\": \"Hilton\", \"age\": 27] as [String : Any])[$0.key]!\n+                }\n+                let other = ReferencePerson(firstName: \"Brad\", lastName: \"Hilton\", age: 27)\n+                XCTAssert(person == other)\n+            } catch {\n+                XCTFail(String(error))\n+            }\n+        }\n+    }\n+\n+    func testConstructFlags() {\n+        struct Flags {\n+            let x: Bool\n+            let y: Bool?\n+            let z: (Bool, Bool)\n+        }\n+        do {\n+            let flags: Flags = try construct(dictionary: [\n+                \"x\": false,\n+                \"y\": nil as Optional<Bool>,\n+                \"z\": (true, false)\n+            ] as [String : Any])\n+            XCTAssert(!flags.x)\n+            XCTAssert(flags.y == nil)\n+            XCTAssert(flags.z == (true, false))\n+        } catch {\n+            XCTFail(String(error))\n+        }\n+    }\n+\n+    func testConstructObject() {\n+        struct Object {","path":"Tests/Quark/Core/Reflection/PublicTests.swift","position":94,"original_position":94,"commit_id":"e2edd8fd386b926af94e7274808e79f85de598a5","original_commit_id":"e2edd8fd386b926af94e7274808e79f85de598a5","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Nesting Violation: Types should be nested at most 1 level deep (nesting)","created_at":"2016-08-04T06:43:19Z","updated_at":"2016-08-04T06:43:19Z","html_url":"https://github.com/QuarkX/Quark/pull/25#discussion_r73469255","pull_request_url":"https://api.github.com/repos/QuarkX/Quark/pulls/25","_links":{"self":{"href":"https://api.github.com/repos/QuarkX/Quark/pulls/comments/73469255"},"html":{"href":"https://github.com/QuarkX/Quark/pull/25#discussion_r73469255"},"pull_request":{"href":"https://api.github.com/repos/QuarkX/Quark/pulls/25"}}},"pull_request":{"url":"https://api.github.com/repos/QuarkX/Quark/pulls/25","id":77384478,"html_url":"https://github.com/QuarkX/Quark/pull/25","diff_url":"https://github.com/QuarkX/Quark/pull/25.diff","patch_url":"https://github.com/QuarkX/Quark/pull/25.patch","issue_url":"https://api.github.com/repos/QuarkX/Quark/issues/25","number":25,"state":"open","locked":false,"title":"Add Tests","user":{"login":"paulofaria","id":5126193,"avatar_url":"https://avatars.githubusercontent.com/u/5126193?v=3","gravatar_id":"","url":"https://api.github.com/users/paulofaria","html_url":"https://github.com/paulofaria","followers_url":"https://api.github.com/users/paulofaria/followers","following_url":"https://api.github.com/users/paulofaria/following{/other_user}","gists_url":"https://api.github.com/users/paulofaria/gists{/gist_id}","starred_url":"https://api.github.com/users/paulofaria/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulofaria/subscriptions","organizations_url":"https://api.github.com/users/paulofaria/orgs","repos_url":"https://api.github.com/users/paulofaria/repos","events_url":"https://api.github.com/users/paulofaria/events{/privacy}","received_events_url":"https://api.github.com/users/paulofaria/received_events","type":"User","site_admin":false},"body":"This PR addresses #24. The goal is to reach at least 25% coverage for 0.1.0.","created_at":"2016-07-14T00:40:46Z","updated_at":"2016-08-04T06:43:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b936ece5a97b623207a271c186a2b89ed4471c31","assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/QuarkX/Quark/milestones/1","html_url":"https://github.com/QuarkX/Quark/milestones/0.1.0","labels_url":"https://api.github.com/repos/QuarkX/Quark/milestones/1/labels","id":1873853,"number":1,"title":"0.1.0","description":"MVP release","creator":{"login":"Danappelxx","id":3291251,"avatar_url":"https://avatars.githubusercontent.com/u/3291251?v=3","gravatar_id":"","url":"https://api.github.com/users/Danappelxx","html_url":"https://github.com/Danappelxx","followers_url":"https://api.github.com/users/Danappelxx/followers","following_url":"https://api.github.com/users/Danappelxx/following{/other_user}","gists_url":"https://api.github.com/users/Danappelxx/gists{/gist_id}","starred_url":"https://api.github.com/users/Danappelxx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Danappelxx/subscriptions","organizations_url":"https://api.github.com/users/Danappelxx/orgs","repos_url":"https://api.github.com/users/Danappelxx/repos","events_url":"https://api.github.com/users/Danappelxx/events{/privacy}","received_events_url":"https://api.github.com/users/Danappelxx/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":8,"state":"open","created_at":"2016-07-09T22:13:46Z","updated_at":"2016-07-26T07:30:55Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/QuarkX/Quark/pulls/25/commits","review_comments_url":"https://api.github.com/repos/QuarkX/Quark/pulls/25/comments","review_comment_url":"https://api.github.com/repos/QuarkX/Quark/pulls/comments{/number}","comments_url":"https://api.github.com/repos/QuarkX/Quark/issues/25/comments","statuses_url":"https://api.github.com/repos/QuarkX/Quark/statuses/e2edd8fd386b926af94e7274808e79f85de598a5","head":{"label":"QuarkX:tests","ref":"tests","sha":"e2edd8fd386b926af94e7274808e79f85de598a5","user":{"login":"QuarkX","id":20213878,"avatar_url":"https://avatars.githubusercontent.com/u/20213878?v=3","gravatar_id":"","url":"https://api.github.com/users/QuarkX","html_url":"https://github.com/QuarkX","followers_url":"https://api.github.com/users/QuarkX/followers","following_url":"https://api.github.com/users/QuarkX/following{/other_user}","gists_url":"https://api.github.com/users/QuarkX/gists{/gist_id}","starred_url":"https://api.github.com/users/QuarkX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/QuarkX/subscriptions","organizations_url":"https://api.github.com/users/QuarkX/orgs","repos_url":"https://api.github.com/users/QuarkX/repos","events_url":"https://api.github.com/users/QuarkX/events{/privacy}","received_events_url":"https://api.github.com/users/QuarkX/received_events","type":"Organization","site_admin":false},"repo":{"id":62730944,"name":"Quark","full_name":"QuarkX/Quark","owner":{"login":"QuarkX","id":20213878,"avatar_url":"https://avatars.githubusercontent.com/u/20213878?v=3","gravatar_id":"","url":"https://api.github.com/users/QuarkX","html_url":"https://github.com/QuarkX","followers_url":"https://api.github.com/users/QuarkX/followers","following_url":"https://api.github.com/users/QuarkX/following{/other_user}","gists_url":"https://api.github.com/users/QuarkX/gists{/gist_id}","starred_url":"https://api.github.com/users/QuarkX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/QuarkX/subscriptions","organizations_url":"https://api.github.com/users/QuarkX/orgs","repos_url":"https://api.github.com/users/QuarkX/repos","events_url":"https://api.github.com/users/QuarkX/events{/privacy}","received_events_url":"https://api.github.com/users/QuarkX/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/QuarkX/Quark","description":"A clean web framework for modern Swift applications (macOS and Linux)","fork":false,"url":"https://api.github.com/repos/QuarkX/Quark","forks_url":"https://api.github.com/repos/QuarkX/Quark/forks","keys_url":"https://api.github.com/repos/QuarkX/Quark/keys{/key_id}","collaborators_url":"https://api.github.com/repos/QuarkX/Quark/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/QuarkX/Quark/teams","hooks_url":"https://api.github.com/repos/QuarkX/Quark/hooks","issue_events_url":"https://api.github.com/repos/QuarkX/Quark/issues/events{/number}","events_url":"https://api.github.com/repos/QuarkX/Quark/events","assignees_url":"https://api.github.com/repos/QuarkX/Quark/assignees{/user}","branches_url":"https://api.github.com/repos/QuarkX/Quark/branches{/branch}","tags_url":"https://api.github.com/repos/QuarkX/Quark/tags","blobs_url":"https://api.github.com/repos/QuarkX/Quark/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/QuarkX/Quark/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/QuarkX/Quark/git/refs{/sha}","trees_url":"https://api.github.com/repos/QuarkX/Quark/git/trees{/sha}","statuses_url":"https://api.github.com/repos/QuarkX/Quark/statuses/{sha}","languages_url":"https://api.github.com/repos/QuarkX/Quark/languages","stargazers_url":"https://api.github.com/repos/QuarkX/Quark/stargazers","contributors_url":"https://api.github.com/repos/QuarkX/Quark/contributors","subscribers_url":"https://api.github.com/repos/QuarkX/Quark/subscribers","subscription_url":"https://api.github.com/repos/QuarkX/Quark/subscription","commits_url":"https://api.github.com/repos/QuarkX/Quark/commits{/sha}","git_commits_url":"https://api.github.com/repos/QuarkX/Quark/git/commits{/sha}","comments_url":"https://api.github.com/repos/QuarkX/Quark/comments{/number}","issue_comment_url":"https://api.github.com/repos/QuarkX/Quark/issues/comments{/number}","contents_url":"https://api.github.com/repos/QuarkX/Quark/contents/{+path}","compare_url":"https://api.github.com/repos/QuarkX/Quark/compare/{base}...{head}","merges_url":"https://api.github.com/repos/QuarkX/Quark/merges","archive_url":"https://api.github.com/repos/QuarkX/Quark/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/QuarkX/Quark/downloads","issues_url":"https://api.github.com/repos/QuarkX/Quark/issues{/number}","pulls_url":"https://api.github.com/repos/QuarkX/Quark/pulls{/number}","milestones_url":"https://api.github.com/repos/QuarkX/Quark/milestones{/number}","notifications_url":"https://api.github.com/repos/QuarkX/Quark/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/QuarkX/Quark/labels{/name}","releases_url":"https://api.github.com/repos/QuarkX/Quark/releases{/id}","deployments_url":"https://api.github.com/repos/QuarkX/Quark/deployments","created_at":"2016-07-06T15:13:36Z","updated_at":"2016-08-02T10:37:22Z","pushed_at":"2016-08-04T06:42:30Z","git_url":"git://github.com/QuarkX/Quark.git","ssh_url":"git@github.com:QuarkX/Quark.git","clone_url":"https://github.com/QuarkX/Quark.git","svn_url":"https://github.com/QuarkX/Quark","homepage":"","size":876,"stargazers_count":11,"watchers_count":11,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":4,"mirror_url":null,"open_issues_count":12,"forks":4,"open_issues":12,"watchers":11,"default_branch":"master"}},"base":{"label":"QuarkX:master","ref":"master","sha":"95a2b1004dd3a155d70b6daa574716c6d4daa8a9","user":{"login":"QuarkX","id":20213878,"avatar_url":"https://avatars.githubusercontent.com/u/20213878?v=3","gravatar_id":"","url":"https://api.github.com/users/QuarkX","html_url":"https://github.com/QuarkX","followers_url":"https://api.github.com/users/QuarkX/followers","following_url":"https://api.github.com/users/QuarkX/following{/other_user}","gists_url":"https://api.github.com/users/QuarkX/gists{/gist_id}","starred_url":"https://api.github.com/users/QuarkX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/QuarkX/subscriptions","organizations_url":"https://api.github.com/users/QuarkX/orgs","repos_url":"https://api.github.com/users/QuarkX/repos","events_url":"https://api.github.com/users/QuarkX/events{/privacy}","received_events_url":"https://api.github.com/users/QuarkX/received_events","type":"Organization","site_admin":false},"repo":{"id":62730944,"name":"Quark","full_name":"QuarkX/Quark","owner":{"login":"QuarkX","id":20213878,"avatar_url":"https://avatars.githubusercontent.com/u/20213878?v=3","gravatar_id":"","url":"https://api.github.com/users/QuarkX","html_url":"https://github.com/QuarkX","followers_url":"https://api.github.com/users/QuarkX/followers","following_url":"https://api.github.com/users/QuarkX/following{/other_user}","gists_url":"https://api.github.com/users/QuarkX/gists{/gist_id}","starred_url":"https://api.github.com/users/QuarkX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/QuarkX/subscriptions","organizations_url":"https://api.github.com/users/QuarkX/orgs","repos_url":"https://api.github.com/users/QuarkX/repos","events_url":"https://api.github.com/users/QuarkX/events{/privacy}","received_events_url":"https://api.github.com/users/QuarkX/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/QuarkX/Quark","description":"A clean web framework for modern Swift applications (macOS and Linux)","fork":false,"url":"https://api.github.com/repos/QuarkX/Quark","forks_url":"https://api.github.com/repos/QuarkX/Quark/forks","keys_url":"https://api.github.com/repos/QuarkX/Quark/keys{/key_id}","collaborators_url":"https://api.github.com/repos/QuarkX/Quark/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/QuarkX/Quark/teams","hooks_url":"https://api.github.com/repos/QuarkX/Quark/hooks","issue_events_url":"https://api.github.com/repos/QuarkX/Quark/issues/events{/number}","events_url":"https://api.github.com/repos/QuarkX/Quark/events","assignees_url":"https://api.github.com/repos/QuarkX/Quark/assignees{/user}","branches_url":"https://api.github.com/repos/QuarkX/Quark/branches{/branch}","tags_url":"https://api.github.com/repos/QuarkX/Quark/tags","blobs_url":"https://api.github.com/repos/QuarkX/Quark/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/QuarkX/Quark/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/QuarkX/Quark/git/refs{/sha}","trees_url":"https://api.github.com/repos/QuarkX/Quark/git/trees{/sha}","statuses_url":"https://api.github.com/repos/QuarkX/Quark/statuses/{sha}","languages_url":"https://api.github.com/repos/QuarkX/Quark/languages","stargazers_url":"https://api.github.com/repos/QuarkX/Quark/stargazers","contributors_url":"https://api.github.com/repos/QuarkX/Quark/contributors","subscribers_url":"https://api.github.com/repos/QuarkX/Quark/subscribers","subscription_url":"https://api.github.com/repos/QuarkX/Quark/subscription","commits_url":"https://api.github.com/repos/QuarkX/Quark/commits{/sha}","git_commits_url":"https://api.github.com/repos/QuarkX/Quark/git/commits{/sha}","comments_url":"https://api.github.com/repos/QuarkX/Quark/comments{/number}","issue_comment_url":"https://api.github.com/repos/QuarkX/Quark/issues/comments{/number}","contents_url":"https://api.github.com/repos/QuarkX/Quark/contents/{+path}","compare_url":"https://api.github.com/repos/QuarkX/Quark/compare/{base}...{head}","merges_url":"https://api.github.com/repos/QuarkX/Quark/merges","archive_url":"https://api.github.com/repos/QuarkX/Quark/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/QuarkX/Quark/downloads","issues_url":"https://api.github.com/repos/QuarkX/Quark/issues{/number}","pulls_url":"https://api.github.com/repos/QuarkX/Quark/pulls{/number}","milestones_url":"https://api.github.com/repos/QuarkX/Quark/milestones{/number}","notifications_url":"https://api.github.com/repos/QuarkX/Quark/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/QuarkX/Quark/labels{/name}","releases_url":"https://api.github.com/repos/QuarkX/Quark/releases{/id}","deployments_url":"https://api.github.com/repos/QuarkX/Quark/deployments","created_at":"2016-07-06T15:13:36Z","updated_at":"2016-08-02T10:37:22Z","pushed_at":"2016-08-04T06:42:30Z","git_url":"git://github.com/QuarkX/Quark.git","ssh_url":"git@github.com:QuarkX/Quark.git","clone_url":"https://github.com/QuarkX/Quark.git","svn_url":"https://github.com/QuarkX/Quark","homepage":"","size":876,"stargazers_count":11,"watchers_count":11,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":4,"mirror_url":null,"open_issues_count":12,"forks":4,"open_issues":12,"watchers":11,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/QuarkX/Quark/pulls/25"},"html":{"href":"https://github.com/QuarkX/Quark/pull/25"},"issue":{"href":"https://api.github.com/repos/QuarkX/Quark/issues/25"},"comments":{"href":"https://api.github.com/repos/QuarkX/Quark/issues/25/comments"},"review_comments":{"href":"https://api.github.com/repos/QuarkX/Quark/pulls/25/comments"},"review_comment":{"href":"https://api.github.com/repos/QuarkX/Quark/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/QuarkX/Quark/pulls/25/commits"},"statuses":{"href":"https://api.github.com/repos/QuarkX/Quark/statuses/e2edd8fd386b926af94e7274808e79f85de598a5"}}}}
{"actor":{"display_login":"houndci-bot"}}