Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Oct 6, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
test macro is working
I cant do all the insane shit I want too, but oh well life goes on.
  • Loading branch information
valarauca committed Aug 9, 2019
commit 8ccc4445d8888c646bf21e49c4629106ed291b5f
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
// SOFTWARE.

// macro usage isn't detected properly
#[allow(unused_macros)]
#[allow(unused_macros)]
macro_rules! test_generator {
(
TypeName: $type_name: ident;
Expand Down
25 changes: 12 additions & 13 deletions src/user.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.


use serde::Deserialize;

/// Information about a user.
Expand Down Expand Up @@ -135,17 +134,17 @@ fn test_user_parsing() {
assert!(id == 1u64);
assert!(avatar_url == "https://github.com/images/error/hubot_happy.gif");
assert!(gravatar_id == "");
assert!(url == "https://api.github.com/users/hubot");
assert!(html_url == "https://github.com/hubot");
assert!(followers_url == "https://api.github.com/users/hubot/followers");
assert!(following_url == "https://api.github.com/users/hubot/following{/other_user}");
assert!(gists_url == "https://api.github.com/users/hubot/gists{/gist_id}");
assert!(starred_url == "https://api.github.com/users/hubot/starred{/owner}{/repo}");
assert!(subscriptions_url == "https://api.github.com/users/hubot/subscriptions");
assert!(organizations_url == "https://api.github.com/users/hubot/orgs");
assert!(repos_url == "https://api.github.com/users/hubot/repos");
assert!(events_url == "https://api.github.com/users/hubot/events{/privacy}");
assert!(received_events_url == "https://api.github.com/users/hubot/received_events");
assert!(site_admin == true);
assert!(url == "https://api.github.com/users/hubot");
assert!(html_url == "https://github.com/hubot");
assert!(followers_url == "https://api.github.com/users/hubot/followers");
assert!(following_url == "https://api.github.com/users/hubot/following{/other_user}");
assert!(gists_url == "https://api.github.com/users/hubot/gists{/gist_id}");
assert!(starred_url == "https://api.github.com/users/hubot/starred{/owner}{/repo}");
assert!(subscriptions_url == "https://api.github.com/users/hubot/subscriptions");
assert!(organizations_url == "https://api.github.com/users/hubot/orgs");
assert!(repos_url == "https://api.github.com/users/hubot/repos");
assert!(events_url == "https://api.github.com/users/hubot/events{/privacy}");
assert!(received_events_url == "https://api.github.com/users/hubot/received_events");
assert!(site_admin == true);
}
}