(&self, key: &str)
| 558 | |
| 559 | impl StepOptions { |
| 560 | fn value(&self, key: &str) -> Option<&str> { |
| 561 | self.values |
| 562 | .iter() |
| 563 | .rev() |
| 564 | .find(|(candidate, _)| candidate == key) |
| 565 | .map(|(_, value)| value.as_str()) |
| 566 | } |
| 567 | |
| 568 | fn flag(&self, key: &str) -> bool { |
| 569 | self.flags.iter().any(|candidate| candidate == key) |
no test coverage detected