浏览代码

#[cfg(test)]

master
Dylan Baker 6 年前
父节点
当前提交
4503c874b7
共有 4 个文件被更改,包括 4 次插入0 次删除
  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 查看文件

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 查看文件

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 查看文件

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 查看文件

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::*;

正在加载...
取消
保存