futures: tests/split.rs: Don't break w/o "executor"
Symbols/Imports pushed down / localised
Tests gated with cfg()
Tests now build and pass with all valid feature combinations
See previous commits for details and rationale
+#[cfg(feature = "executor")] // executor::
+#[test]
+fn test_split() {
use futures::executor::block_on;
use futures::sink::{Sink, SinkExt};
use futures::stream::{self, Stream, StreamExt};
@@ -58,8 +61,6 @@ impl<T, U: Sink<Item>, Item> Sink<Item> for Join<T, U> {
}
}
-#[test]
-fn test_split() {
let mut dest: Vec<i32> = Vec::new();
{
let join = Join {
