Set a list of expected strings that must appear in any errors
(
mut self,
expected_errors: impl IntoIterator<Item = &'a str>,
)
| 766 | |
| 767 | /// Set a list of expected strings that must appear in any errors |
| 768 | fn with_expected_errors<'a>( |
| 769 | mut self, |
| 770 | expected_errors: impl IntoIterator<Item = &'a str>, |
| 771 | ) -> Self { |
| 772 | self.expected_errors = |
| 773 | expected_errors.into_iter().map(|s| s.to_string()).collect(); |
| 774 | self |
| 775 | } |
| 776 | |
| 777 | /// Set the amount of memory that can be used |
| 778 | fn with_memory_limit(mut self, memory_limit: usize) -> Self { |
no test coverage detected