Return the path of the file runner or `[inline code]`.
(&self)
| 89 | |
| 90 | /// Return the path of the file runner or `[inline code]`. |
| 91 | pub fn path(&self) -> String { |
| 92 | match self.path { |
| 93 | None => "[inline code]".to_string(), |
| 94 | Some(ref p) => p.to_string_lossy().to_string(), |
| 95 | } |
| 96 | } |
| 97 | |
| 98 | /// Run the file; this searches for annotations like `; run: %fn0(42)` or |
| 99 | /// `; test: %fn0(42) == 2` and executes them, performing any test comparisons if necessary. |