Write a text file at [`ChildPath`].
| 101 | /// Write a text file at [`ChildPath`]. |
| 102 | /// |
| 103 | pub trait FileWriteStr { |
| 104 | /// Write a text file at [`ChildPath`]. |
| 105 | /// |
| 106 | /// # Examples |
| 107 | /// |
| 108 | /// ```rust |
| 109 | /// use assert_fs::prelude::*; |
| 110 | /// |
| 111 | /// let temp = assert_fs::TempDir::new().unwrap(); |
| 112 | /// temp |
| 113 | /// .child("foo.txt") |
| 114 | /// .write_str("To be or not to be...") |
| 115 | /// .unwrap(); |
| 116 | /// temp.close().unwrap(); |
| 117 | /// ``` |
| 118 | /// |
| 119 | fn write_str(&self, data: &str) -> Result<(), FixtureError>; |
| 120 | } |
| 121 | |
| 122 | impl FileWriteStr for ChildPath { |
| 123 | fn write_str(&self, data: &str) -> Result<(), FixtureError> { |
nothing calls this directly
no outgoing calls
no test coverage detected