Browse Source

#[cfg(test)]

master
Dylan Baker 5 years ago
parent
commit
4503c874b7
4 changed files with 4 additions and 0 deletions
  1. 1
    0
      src/main.rs
  2. 1
    0
      src/post.rs
  3. 1
    0
      src/render.rs
  4. 1
    0
      src/write.rs

+ 1
- 0
src/main.rs View File

@@ -103,6 +103,7 @@ fn main() {
103 103
     }
104 104
 }
105 105
 
106
+#[cfg(test)]
106 107
 mod tests {
107 108
     #[allow(unused_imports)]
108 109
     use super::*;

+ 1
- 0
src/post.rs View File

@@ -37,6 +37,7 @@ pub fn parse_post(path: path::PathBuf) -> Post {
37 37
     }
38 38
 }
39 39
 
40
+#[cfg(test)]
40 41
 mod tests {
41 42
     #[allow(unused_imports)]
42 43
     use super::*;

+ 1
- 0
src/render.rs View File

@@ -34,6 +34,7 @@ pub fn render_post_listing(
34 34
     )
35 35
 }
36 36
 
37
+#[cfg(test)]
37 38
 mod tests {
38 39
     #[allow(unused_imports)]
39 40
     use super::{render_post, render_post_listing, Post};

+ 1
- 0
src/write.rs View File

@@ -30,6 +30,7 @@ pub fn write_post_listing(
30 30
     ).expect("Unable to write file");
31 31
 }
32 32
 
33
+#[cfg(test)]
33 34
 mod tests {
34 35
     #[allow(unused_imports)]
35 36
     use super::*;

Loading…
Cancel
Save