Sfoglia il codice sorgente

#[cfg(test)]

master
Dylan Baker 5 anni fa
parent
commit
4503c874b7
4 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  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 Vedi File

103
     }
103
     }
104
 }
104
 }
105
 
105
 
106
+#[cfg(test)]
106
 mod tests {
107
 mod tests {
107
     #[allow(unused_imports)]
108
     #[allow(unused_imports)]
108
     use super::*;
109
     use super::*;

+ 1
- 0
src/post.rs Vedi File

37
     }
37
     }
38
 }
38
 }
39
 
39
 
40
+#[cfg(test)]
40
 mod tests {
41
 mod tests {
41
     #[allow(unused_imports)]
42
     #[allow(unused_imports)]
42
     use super::*;
43
     use super::*;

+ 1
- 0
src/render.rs Vedi File

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

+ 1
- 0
src/write.rs Vedi File

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

Loading…
Annulla
Salva