-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Revocable checks #64
Revocable checks #64
Conversation
bc7bc3e
to
5d2edb1
Compare
@@ -73,6 +73,26 @@ impl RevocationStatusList { | |||
self.revocation_list.get(idx).as_deref().copied() | |||
} | |||
|
|||
pub fn revoke(&mut self, idx: usize) -> Option<bool> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be good to add some code doc when it returns true / false / none.
if let Some(at) = p2.requested_attributes.get_mut("attr4_referent") { | ||
at.non_revoked = Some(NonRevocedInterval { | ||
from: Some(10), | ||
to: Some(20), | ||
}) | ||
} else { | ||
panic!("Cannot add non_revoke to attri"); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can just unwrap
here
pub max_cred_num: u32, | ||
} | ||
|
||
impl<'a> Mock<'a> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have never really done any intensive mocking with Rust, but would it not be easier to pull in a dependency for this? I have no issue with keeping this, but we might have a bit less code with a mock dependency.
Signed-off-by: bwty <[email protected]>
Signed-off-by: bwty <[email protected]>
Signed-off-by: bwty <[email protected]>
Signed-off-by: bwty <[email protected]>
Signed-off-by: bwty <[email protected]>
Signed-off-by: bwty <[email protected]>
2880b2f
to
f663deb
Compare
Addressed by #102 |
Closes #42 and updates e2e test framework