Adds a file to expect in the drive with a `name` and specific `content`. `name` must be the absolute path to the file that is expected, including the drive name.
(mut self, name: N, content: C)
| 945 | /// |
| 946 | /// `name` must be the absolute path to the file that is expected, including the drive name. |
| 947 | pub fn expect_file<N: Into<String>, C: Into<String>>(mut self, name: N, content: C) -> Self { |
| 948 | let name = name.into(); |
| 949 | assert!(!self.exp_drives.contains_key(&name)); |
| 950 | self.exp_drives.insert(name, content.into()); |
| 951 | self |
| 952 | } |
| 953 | |
| 954 | /// Adds the `out` sequence of captured outputs to the expected outputs of the execution. |
| 955 | pub fn expect_output<V: Into<Vec<CapturedOut>>>(mut self, out: V) -> Self { |
no test coverage detected