about summary refs log tree commit diff
path: root/src/libstd/timer.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-04-15 20:00:56 -0700
committerbors <bors@rust-lang.org>2013-04-15 20:00:56 -0700
commit16e8af9e477fd5a6e7dcf668840144a97e3b1410 (patch)
tree0aadb938c2b293f149e4501fb26b5da5e6a818c1 /src/libstd/timer.rs
parent447caf9bdb8b769581fcd8c337634da431d21954 (diff)
parent40e3577b0834794b2d44e6c527fda90d1adbc88e (diff)
downloadrust-16e8af9e477fd5a6e7dcf668840144a97e3b1410.tar.gz
rust-16e8af9e477fd5a6e7dcf668840144a97e3b1410.zip
auto merge of #5895 : huonw/rust/no-pub-tests, r=thestinger
This patch is a sledge hammer that moves all tests into `#[cfg(test)] mod test { .. }`, and makes them private, there were several instances of `pub mod tests { #[test] pub fn ... } `.

(The reason for this is I was playing with using `syntax` to index code ([result so far](http://www.ug.it.usyd.edu.au/~hwil7821/rust-api/)) and it was getting some junk from the tests.)

The rustdoc commit is particularly brutal, so it's fine if that one isn't landed.
Diffstat (limited to 'src/libstd/timer.rs')
-rw-r--r--src/libstd/timer.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libstd/timer.rs b/src/libstd/timer.rs
index 99e772b0c95..c229e72ae5d 100644
--- a/src/libstd/timer.rs
+++ b/src/libstd/timer.rs
@@ -183,13 +183,13 @@ mod test {
     use core::pipes::{stream, SharedChan};
 
     #[test]
-    pub fn test_gl_timer_simple_sleep_test() {
+    fn test_gl_timer_simple_sleep_test() {
         let hl_loop = &uv::global_loop::get();
         sleep(hl_loop, 1u);
     }
 
     #[test]
-    pub fn test_gl_timer_sleep_stress1() {
+    fn test_gl_timer_sleep_stress1() {
         let hl_loop = &uv::global_loop::get();
         for iter::repeat(50u) {
             sleep(hl_loop, 1u);
@@ -197,7 +197,7 @@ mod test {
     }
 
     #[test]
-    pub fn test_gl_timer_sleep_stress2() {
+    fn test_gl_timer_sleep_stress2() {
         let (po, ch) = stream();
         let ch = SharedChan(ch);
         let hl_loop = &uv::global_loop::get();
@@ -241,7 +241,7 @@ mod test {
 
     #[test]
     #[cfg(ignore)]
-    pub fn test_gl_timer_recv_timeout_before_time_passes() {
+    fn test_gl_timer_recv_timeout_before_time_passes() {
         let times = 100;
         let mut successes = 0;
         let mut failures = 0;
@@ -270,7 +270,7 @@ mod test {
     }
 
     #[test]
-    pub fn test_gl_timer_recv_timeout_after_time_passes() {
+    fn test_gl_timer_recv_timeout_after_time_passes() {
         let times = 100;
         let mut successes = 0;
         let mut failures = 0;