-
Notifications
You must be signed in to change notification settings - Fork 49
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
Adding context.getvarfrominput and context.getvar #803
base: develop
Are you sure you want to change the base?
Adding context.getvarfrominput and context.getvar #803
Conversation
Pull Request Test Coverage Report for Build 12688397824Details
💛 - Coveralls |
match ctx.extension.values.get(&var_id) { | ||
None => Ok(Value::Opt(Box::new(None))), | ||
Some(v) if v.tpe == *expected_type => Ok(Value::Opt(Box::new(Some(v.v.clone().into())))), | ||
Some(_) => Err(EvalError::UnexpectedValue( |
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.
This should return None
))); | ||
} | ||
|
||
match ctx.extension.values.get(&var_id) { |
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.
This is supposed to get from input_index's context extension
proptest! { | ||
#![proptest_config(ProptestConfig::with_cases(64))] | ||
|
||
#[test] |
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.
rustfmt doesn't work inside proptest macros unfortunately, can you manually fix some of the indent issues?
@SethDusek, Ready for review.