Update use of tests dir

pull/57/head
Thijs Cadier 4 years ago
parent 97d22cc241
commit 727bf09e70

@ -1,7 +1,12 @@
extern crate bson;
extern crate chrono;
extern crate mongo_driver;
use chrono::prelude::*;
use mongo_driver::client::{ClientPool,Uri};
use bson::{bson,doc};
use bson::oid::ObjectId;
use bson::spec::BinarySubtype;

@ -1,7 +1,9 @@
use std::env;
extern crate bson;
extern crate mongo_driver;
use bson;
use std::env;
use bson::{bson,doc};
use mongo_driver::client::{ClientPool,Uri};
#[test]

@ -1,8 +1,12 @@
extern crate bson;
extern crate mongo_driver;
use std::env;
use std::path::PathBuf;
use std::sync::Arc;
use std::thread;
use bson::{bson,doc};
use mongo_driver::client::{ClientPool,SslOptions,Uri};
#[test]

@ -1,4 +1,7 @@
use bson;
extern crate bson;
extern crate mongo_driver;
use bson::{bson,doc};
use mongo_driver::CommandAndFindOptions;
use mongo_driver::collection::{CountOptions,FindAndModifyOperation};

@ -1,8 +1,11 @@
extern crate bson;
extern crate mongo_driver;
use std::sync::Arc;
use std::thread;
use std::time::Duration;
use bson;
use bson::{bson,doc};
use mongo_driver::client::{ClientPool,Uri};
use mongo_driver::Result;
@ -133,4 +136,4 @@ fn test_batch_cursor() {
}
collection.drop().unwrap();
}
}

@ -1,3 +1,8 @@
extern crate bson;
extern crate mongo_driver;
use bson::{bson,doc};
use mongo_driver::client::{ClientPool,Uri};
#[cfg_attr(target_os = "windows", ignore)]
@ -74,4 +79,4 @@ fn test_has_collection() {
assert_eq!(COLL_NAME, collection.get_name().to_mut());
assert!(database.has_collection(COLL_NAME).unwrap());
}
}

@ -1,3 +1,5 @@
extern crate mongo_driver;
use mongo_driver::flags::*;
#[test]

@ -1,3 +1,5 @@
extern crate mongo_driver;
use mongo_driver::read_prefs::ReadPrefs;
#[test]

@ -1,15 +0,0 @@
extern crate mongo_driver;
extern crate chrono;
#[macro_use]
extern crate bson;
mod bson_encode_decode;
mod bulk_operation;
mod client;
mod collection;
mod cursor;
mod database;
mod flags;
mod read_prefs;
mod uri;
mod write_concern;

@ -1,3 +1,4 @@
extern crate mongo_driver;
use mongo_driver::client::Uri;
#[test]

@ -1,3 +1,5 @@
extern crate mongo_driver;
use mongo_driver::write_concern::WriteConcern;
#[test]

Loading…
Cancel
Save