Skip to content

Commit

Permalink
finish out metadata constructor unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
mschuchard committed May 7, 2024
1 parent 48ce02b commit b2fe347
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions src/concourse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -289,20 +289,32 @@ mod tests {
)
}

/*#[test]
#[test]
fn test_outmetadata_new() {
assert_eq!(
OutMetadata::new(
5,
vec![octocrab::models::Author {}],
vec![octocrab::models::Label {}]
String::from("http://does.not.exist"),
String::from("some issue"),
octocrab::models::IssueState::Open,
vec![],
vec![],
None,
String::from("yesterday"),
String::from("today"),
),
OutMetadata {
number: 5,
labels: vec![octocrab::models::Author {}],
assignees: vec![octocrab::models::Label {}]
url: String::from("http://does.not.exist"),
title: String::from("some issue"),
state: octocrab::models::IssueState::Open,
labels: vec![],
assignees: vec![],
milestone: None,
created: String::from("yesterday"),
updated: String::from("today"),
},
"outmetadata could not be constructed with the correct values"
)
}*/
}
}

0 comments on commit b2fe347

Please sign in to comment.