{"action":"opened","number":34,"pull_request":{"url":"https://api.github.com/repos/pindell-matt/rust_bucket/pulls/34","id":76511864,"html_url":"https://github.com/pindell-matt/rust_bucket/pull/34","diff_url":"https://github.com/pindell-matt/rust_bucket/pull/34.diff","patch_url":"https://github.com/pindell-matt/rust_bucket/pull/34.patch","issue_url":"https://api.github.com/repos/pindell-matt/rust_bucket/issues/34","number":34,"state":"open","locked":false,"title":"added tests for find - get_table - get_table_records","user":{"login":"selfup","id":9837366,"avatar_url":"https://avatars.githubusercontent.com/u/9837366?v=3","gravatar_id":"","url":"https://api.github.com/users/selfup","html_url":"https://github.com/selfup","followers_url":"https://api.github.com/users/selfup/followers","following_url":"https://api.github.com/users/selfup/following{/other_user}","gists_url":"https://api.github.com/users/selfup/gists{/gist_id}","starred_url":"https://api.github.com/users/selfup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/selfup/subscriptions","organizations_url":"https://api.github.com/users/selfup/orgs","repos_url":"https://api.github.com/users/selfup/repos","events_url":"https://api.github.com/users/selfup/events{/privacy}","received_events_url":"https://api.github.com/users/selfup/received_events","type":"User","site_admin":false},"body":"```rust\r\n    #[test]\r\n    fn it_can_store_update_read_and_drop_raw_json() {\r\n        store_json(\"json_test_one\", \"{\\\"x\\\":42,\\\"y\\\":9000}}}\").unwrap();\r\n        assert_eq!(\"{\\\"x\\\":42,\\\"y\\\":9000}}}\", read_table(\"json_test_one\").unwrap());\r\n\r\n        update_json(\"json_test_one\", \"{\\\"x\\\":45,\\\"y\\\":9876}}}\").unwrap();\r\n        assert_eq!(\"{\\\"x\\\":45,\\\"y\\\":9876}}}\", read_table(\"json_test_one\").unwrap());\r\n\r\n        drop_table(\"json_test_one\").unwrap();\r\n    }\r\n\r\n    #[test]\r\n    fn it_can_return_objects_from_json() {\r\n        let a = sc::Coordinates { x: 42, y: 9000 };\r\n        let b = sc::Coordinates { x: 42, y: 9000 };\r\n        let c = sc::Coordinates { x: 42, y: 9000 };\r\n\r\n        create_table(\"object_test\", &a).unwrap();\r\n\r\n        let d = get_table_records::<sc::Coordinates>;\r\n        let e = get_table::<sc::Coordinates>;\r\n        let f = find::<sc::Coordinates>;\r\n\r\n        let mut record = HashMap::new();\r\n        record.insert(\"0\".to_string(), b);\r\n\r\n        let mut test_record = HashMap::new();\r\n        test_record.insert(\"0\".to_string(), c);\r\n\r\n        let test_data = Data {\r\n            table: \"object_test\".to_string(),\r\n            next_id: \"1\".to_string(),\r\n            records: record,\r\n        };\r\n\r\n        assert_eq!(test_record, d(\"object_test\").unwrap());\r\n        assert_eq!(test_data, e(\"object_test\").unwrap());\r\n        assert_eq!(a, f(\"object_test\", \"0\").unwrap());\r\n    }\r\n```","created_at":"2016-07-06T22:21:51Z","updated_at":"2016-07-06T22:21:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2f6f5a014b87a5b3fd4ec7c5221f83df290a0ac9","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/pindell-matt/rust_bucket/pulls/34/commits","review_comments_url":"https://api.github.com/repos/pindell-matt/rust_bucket/pulls/34/comments","review_comment_url":"https://api.github.com/repos/pindell-matt/rust_bucket/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pindell-matt/rust_bucket/issues/34/comments","statuses_url":"https://api.github.com/repos/pindell-matt/rust_bucket/statuses/60be173c56aae9fb82c769e49a34f65e10d8f1dc","head":{"label":"pindell-matt:more_testing","ref":"more_testing","sha":"60be173c56aae9fb82c769e49a34f65e10d8f1dc","user":{"login":"pindell-matt","id":8797393,"avatar_url":"https://avatars.githubusercontent.com/u/8797393?v=3","gravatar_id":"","url":"https://api.github.com/users/pindell-matt","html_url":"https://github.com/pindell-matt","followers_url":"https://api.github.com/users/pindell-matt/followers","following_url":"https://api.github.com/users/pindell-matt/following{/other_user}","gists_url":"https://api.github.com/users/pindell-matt/gists{/gist_id}","starred_url":"https://api.github.com/users/pindell-matt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pindell-matt/subscriptions","organizations_url":"https://api.github.com/users/pindell-matt/orgs","repos_url":"https://api.github.com/users/pindell-matt/repos","events_url":"https://api.github.com/users/pindell-matt/events{/privacy}","received_events_url":"https://api.github.com/users/pindell-matt/received_events","type":"User","site_admin":false},"repo":{"id":56199349,"name":"rust_bucket","full_name":"pindell-matt/rust_bucket","owner":{"login":"pindell-matt","id":8797393,"avatar_url":"https://avatars.githubusercontent.com/u/8797393?v=3","gravatar_id":"","url":"https://api.github.com/users/pindell-matt","html_url":"https://github.com/pindell-matt","followers_url":"https://api.github.com/users/pindell-matt/followers","following_url":"https://api.github.com/users/pindell-matt/following{/other_user}","gists_url":"https://api.github.com/users/pindell-matt/gists{/gist_id}","starred_url":"https://api.github.com/users/pindell-matt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pindell-matt/subscriptions","organizations_url":"https://api.github.com/users/pindell-matt/orgs","repos_url":"https://api.github.com/users/pindell-matt/repos","events_url":"https://api.github.com/users/pindell-matt/events{/privacy}","received_events_url":"https://api.github.com/users/pindell-matt/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pindell-matt/rust_bucket","description":"Simple JSON key-value store implemented in Rust","fork":false,"url":"https://api.github.com/repos/pindell-matt/rust_bucket","forks_url":"https://api.github.com/repos/pindell-matt/rust_bucket/forks","keys_url":"https://api.github.com/repos/pindell-matt/rust_bucket/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pindell-matt/rust_bucket/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pindell-matt/rust_bucket/teams","hooks_url":"https://api.github.com/repos/pindell-matt/rust_bucket/hooks","issue_events_url":"https://api.github.com/repos/pindell-matt/rust_bucket/issues/events{/number}","events_url":"https://api.github.com/repos/pindell-matt/rust_bucket/events","assignees_url":"https://api.github.com/repos/pindell-matt/rust_bucket/assignees{/user}","branches_url":"https://api.github.com/repos/pindell-matt/rust_bucket/branches{/branch}","tags_url":"https://api.github.com/repos/pindell-matt/rust_bucket/tags","blobs_url":"https://api.github.com/repos/pindell-matt/rust_bucket/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pindell-matt/rust_bucket/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pindell-matt/rust_bucket/git/refs{/sha}","trees_url":"https://api.github.com/repos/pindell-matt/rust_bucket/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pindell-matt/rust_bucket/statuses/{sha}","languages_url":"https://api.github.com/repos/pindell-matt/rust_bucket/languages","stargazers_url":"https://api.github.com/repos/pindell-matt/rust_bucket/stargazers","contributors_url":"https://api.github.com/repos/pindell-matt/rust_bucket/contributors","subscribers_url":"https://api.github.com/repos/pindell-matt/rust_bucket/subscribers","subscription_url":"https://api.github.com/repos/pindell-matt/rust_bucket/subscription","commits_url":"https://api.github.com/repos/pindell-matt/rust_bucket/commits{/sha}","git_commits_url":"https://api.github.com/repos/pindell-matt/rust_bucket/git/commits{/sha}","comments_url":"https://api.github.com/repos/pindell-matt/rust_bucket/comments{/number}","issue_comment_url":"https://api.github.com/repos/pindell-matt/rust_bucket/issues/comments{/number}","contents_url":"https://api.github.com/repos/pindell-matt/rust_bucket/contents/{+path}","compare_url":"https://api.github.com/repos/pindell-matt/rust_bucket/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pindell-matt/rust_bucket/merges","archive_url":"https://api.github.com/repos/pindell-matt/rust_bucket/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pindell-matt/rust_bucket/downloads","issues_url":"https://api.github.com/repos/pindell-matt/rust_bucket/issues{/number}","pulls_url":"https://api.github.com/repos/pindell-matt/rust_bucket/pulls{/number}","milestones_url":"https://api.github.com/repos/pindell-matt/rust_bucket/milestones{/number}","notifications_url":"https://api.github.com/repos/pindell-matt/rust_bucket/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pindell-matt/rust_bucket/labels{/name}","releases_url":"https://api.github.com/repos/pindell-matt/rust_bucket/releases{/id}","deployments_url":"https://api.github.com/repos/pindell-matt/rust_bucket/deployments","created_at":"2016-04-14T01:57:54Z","updated_at":"2016-07-04T08:47:22Z","pushed_at":"2016-07-06T22:21:52Z","git_url":"git://github.com/pindell-matt/rust_bucket.git","ssh_url":"git@github.com:pindell-matt/rust_bucket.git","clone_url":"https://github.com/pindell-matt/rust_bucket.git","svn_url":"https://github.com/pindell-matt/rust_bucket","homepage":"","size":79,"stargazers_count":8,"watchers_count":8,"language":"Rust","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":8,"default_branch":"master"}},"base":{"label":"pindell-matt:master","ref":"master","sha":"294a18cf838dafe460d4b150885e9fe0cd5e70d9","user":{"login":"pindell-matt","id":8797393,"avatar_url":"https://avatars.githubusercontent.com/u/8797393?v=3","gravatar_id":"","url":"https://api.github.com/users/pindell-matt","html_url":"https://github.com/pindell-matt","followers_url":"https://api.github.com/users/pindell-matt/followers","following_url":"https://api.github.com/users/pindell-matt/following{/other_user}","gists_url":"https://api.github.com/users/pindell-matt/gists{/gist_id}","starred_url":"https://api.github.com/users/pindell-matt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pindell-matt/subscriptions","organizations_url":"https://api.github.com/users/pindell-matt/orgs","repos_url":"https://api.github.com/users/pindell-matt/repos","events_url":"https://api.github.com/users/pindell-matt/events{/privacy}","received_events_url":"https://api.github.com/users/pindell-matt/received_events","type":"User","site_admin":false},"repo":{"id":56199349,"name":"rust_bucket","full_name":"pindell-matt/rust_bucket","owner":{"login":"pindell-matt","id":8797393,"avatar_url":"https://avatars.githubusercontent.com/u/8797393?v=3","gravatar_id":"","url":"https://api.github.com/users/pindell-matt","html_url":"https://github.com/pindell-matt","followers_url":"https://api.github.com/users/pindell-matt/followers","following_url":"https://api.github.com/users/pindell-matt/following{/other_user}","gists_url":"https://api.github.com/users/pindell-matt/gists{/gist_id}","starred_url":"https://api.github.com/users/pindell-matt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pindell-matt/subscriptions","organizations_url":"https://api.github.com/users/pindell-matt/orgs","repos_url":"https://api.github.com/users/pindell-matt/repos","events_url":"https://api.github.com/users/pindell-matt/events{/privacy}","received_events_url":"https://api.github.com/users/pindell-matt/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pindell-matt/rust_bucket","description":"Simple JSON key-value store implemented in Rust","fork":false,"url":"https://api.github.com/repos/pindell-matt/rust_bucket","forks_url":"https://api.github.com/repos/pindell-matt/rust_bucket/forks","keys_url":"https://api.github.com/repos/pindell-matt/rust_bucket/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pindell-matt/rust_bucket/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pindell-matt/rust_bucket/teams","hooks_url":"https://api.github.com/repos/pindell-matt/rust_bucket/hooks","issue_events_url":"https://api.github.com/repos/pindell-matt/rust_bucket/issues/events{/number}","events_url":"https://api.github.com/repos/pindell-matt/rust_bucket/events","assignees_url":"https://api.github.com/repos/pindell-matt/rust_bucket/assignees{/user}","branches_url":"https://api.github.com/repos/pindell-matt/rust_bucket/branches{/branch}","tags_url":"https://api.github.com/repos/pindell-matt/rust_bucket/tags","blobs_url":"https://api.github.com/repos/pindell-matt/rust_bucket/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pindell-matt/rust_bucket/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pindell-matt/rust_bucket/git/refs{/sha}","trees_url":"https://api.github.com/repos/pindell-matt/rust_bucket/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pindell-matt/rust_bucket/statuses/{sha}","languages_url":"https://api.github.com/repos/pindell-matt/rust_bucket/languages","stargazers_url":"https://api.github.com/repos/pindell-matt/rust_bucket/stargazers","contributors_url":"https://api.github.com/repos/pindell-matt/rust_bucket/contributors","subscribers_url":"https://api.github.com/repos/pindell-matt/rust_bucket/subscribers","subscription_url":"https://api.github.com/repos/pindell-matt/rust_bucket/subscription","commits_url":"https://api.github.com/repos/pindell-matt/rust_bucket/commits{/sha}","git_commits_url":"https://api.github.com/repos/pindell-matt/rust_bucket/git/commits{/sha}","comments_url":"https://api.github.com/repos/pindell-matt/rust_bucket/comments{/number}","issue_comment_url":"https://api.github.com/repos/pindell-matt/rust_bucket/issues/comments{/number}","contents_url":"https://api.github.com/repos/pindell-matt/rust_bucket/contents/{+path}","compare_url":"https://api.github.com/repos/pindell-matt/rust_bucket/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pindell-matt/rust_bucket/merges","archive_url":"https://api.github.com/repos/pindell-matt/rust_bucket/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pindell-matt/rust_bucket/downloads","issues_url":"https://api.github.com/repos/pindell-matt/rust_bucket/issues{/number}","pulls_url":"https://api.github.com/repos/pindell-matt/rust_bucket/pulls{/number}","milestones_url":"https://api.github.com/repos/pindell-matt/rust_bucket/milestones{/number}","notifications_url":"https://api.github.com/repos/pindell-matt/rust_bucket/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pindell-matt/rust_bucket/labels{/name}","releases_url":"https://api.github.com/repos/pindell-matt/rust_bucket/releases{/id}","deployments_url":"https://api.github.com/repos/pindell-matt/rust_bucket/deployments","created_at":"2016-04-14T01:57:54Z","updated_at":"2016-07-04T08:47:22Z","pushed_at":"2016-07-06T22:21:52Z","git_url":"git://github.com/pindell-matt/rust_bucket.git","ssh_url":"git@github.com:pindell-matt/rust_bucket.git","clone_url":"https://github.com/pindell-matt/rust_bucket.git","svn_url":"https://github.com/pindell-matt/rust_bucket","homepage":"","size":79,"stargazers_count":8,"watchers_count":8,"language":"Rust","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pindell-matt/rust_bucket/pulls/34"},"html":{"href":"https://github.com/pindell-matt/rust_bucket/pull/34"},"issue":{"href":"https://api.github.com/repos/pindell-matt/rust_bucket/issues/34"},"comments":{"href":"https://api.github.com/repos/pindell-matt/rust_bucket/issues/34/comments"},"review_comments":{"href":"https://api.github.com/repos/pindell-matt/rust_bucket/pulls/34/comments"},"review_comment":{"href":"https://api.github.com/repos/pindell-matt/rust_bucket/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pindell-matt/rust_bucket/pulls/34/commits"},"statuses":{"href":"https://api.github.com/repos/pindell-matt/rust_bucket/statuses/60be173c56aae9fb82c769e49a34f65e10d8f1dc"}},"merged":false,"mergeable":true,"mergeable_state":"unstable","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":41,"deletions":0,"changed_files":1}}
{"actor":{"display_login":"selfup"}}