summaryrefslogtreecommitdiff
path: root/tests/Network/BitTorrent
diff options
context:
space:
mode:
authorSam Truzjan <pxqr.sta@gmail.com>2014-04-08 02:36:18 +0400
committerSam Truzjan <pxqr.sta@gmail.com>2014-04-08 02:36:18 +0400
commit75711985512c8578e913a1b464816968b4aef5dd (patch)
tree5ab77d69af0e9bc315b58f1df6ba100e318adfce /tests/Network/BitTorrent
parent7e597cd924d2149b10f900c7dc14ce6e1e321cb5 (diff)
Merge PeerAddr and NodeAddr modules
Diffstat (limited to 'tests/Network/BitTorrent')
-rw-r--r--tests/Network/BitTorrent/Core/FingerprintSpec.hs2
-rw-r--r--tests/Network/BitTorrent/Core/NodeInfoSpec.hs2
-rw-r--r--tests/Network/BitTorrent/Core/PeerAddrSpec.hs4
-rw-r--r--tests/Network/BitTorrent/Core/PeerIdSpec.hs2
-rw-r--r--tests/Network/BitTorrent/CoreSpec.hs2
-rw-r--r--tests/Network/BitTorrent/DHT/MessageSpec.hs2
-rw-r--r--tests/Network/BitTorrent/DHT/QuerySpec.hs2
-rw-r--r--tests/Network/BitTorrent/DHT/RoutingSpec.hs2
-rw-r--r--tests/Network/BitTorrent/DHT/SessionSpec.hs2
-rw-r--r--tests/Network/BitTorrent/DHT/TokenSpec.hs2
-rw-r--r--tests/Network/BitTorrent/Exchange/ConnectionSpec.hs2
-rw-r--r--tests/Network/BitTorrent/Exchange/MessageSpec.hs2
-rw-r--r--tests/Network/BitTorrent/Exchange/Session/MetadataSpec.hs2
-rw-r--r--tests/Network/BitTorrent/Exchange/SessionSpec.hs2
-rw-r--r--tests/Network/BitTorrent/Tracker/MessageSpec.hs6
-rw-r--r--tests/Network/BitTorrent/Tracker/RPC/UDPSpec.hs2
16 files changed, 19 insertions, 19 deletions
diff --git a/tests/Network/BitTorrent/Core/FingerprintSpec.hs b/tests/Network/BitTorrent/Core/FingerprintSpec.hs
index df62442a..f8ed6950 100644
--- a/tests/Network/BitTorrent/Core/FingerprintSpec.hs
+++ b/tests/Network/BitTorrent/Core/FingerprintSpec.hs
@@ -1,7 +1,7 @@
1-- | see <http://bittorrent.org/beps/bep_0020.html> 1-- | see <http://bittorrent.org/beps/bep_0020.html>
2module Network.BitTorrent.Core.FingerprintSpec (spec) where 2module Network.BitTorrent.Core.FingerprintSpec (spec) where
3import Test.Hspec 3import Test.Hspec
4import Network.BitTorrent.Core.PeerId 4import Network.BitTorrent.Address
5 5
6spec :: Spec 6spec :: Spec
7spec = do 7spec = do
diff --git a/tests/Network/BitTorrent/Core/NodeInfoSpec.hs b/tests/Network/BitTorrent/Core/NodeInfoSpec.hs
index fb777440..0d30b9a6 100644
--- a/tests/Network/BitTorrent/Core/NodeInfoSpec.hs
+++ b/tests/Network/BitTorrent/Core/NodeInfoSpec.hs
@@ -6,7 +6,7 @@ import Data.String
6import Test.Hspec 6import Test.Hspec
7import Test.QuickCheck 7import Test.QuickCheck
8 8
9import Network.BitTorrent.Core 9import Network.BitTorrent.Address
10import Network.BitTorrent.Core.PeerAddrSpec () 10import Network.BitTorrent.Core.PeerAddrSpec ()
11 11
12instance Arbitrary NodeId where 12instance Arbitrary NodeId where
diff --git a/tests/Network/BitTorrent/Core/PeerAddrSpec.hs b/tests/Network/BitTorrent/Core/PeerAddrSpec.hs
index abb90183..387126db 100644
--- a/tests/Network/BitTorrent/Core/PeerAddrSpec.hs
+++ b/tests/Network/BitTorrent/Core/PeerAddrSpec.hs
@@ -11,8 +11,8 @@ import Network
11import Test.Hspec 11import Test.Hspec
12import Test.QuickCheck 12import Test.QuickCheck
13 13
14import Network.BitTorrent.Core.PeerIdSpec hiding (spec) 14import Network.BitTorrent.Core.PeerIdSpec ()
15import Network.BitTorrent.Core.PeerAddr 15import Network.BitTorrent.Address
16 16
17instance Arbitrary IPv4 where 17instance Arbitrary IPv4 where
18 arbitrary = do 18 arbitrary = do
diff --git a/tests/Network/BitTorrent/Core/PeerIdSpec.hs b/tests/Network/BitTorrent/Core/PeerIdSpec.hs
index 4b0c2398..29b98bbc 100644
--- a/tests/Network/BitTorrent/Core/PeerIdSpec.hs
+++ b/tests/Network/BitTorrent/Core/PeerIdSpec.hs
@@ -6,7 +6,7 @@ import Data.Text.Encoding as T
6import Test.Hspec 6import Test.Hspec
7import Test.QuickCheck 7import Test.QuickCheck
8import Test.QuickCheck.Instances () 8import Test.QuickCheck.Instances ()
9import Network.BitTorrent.Core.PeerId 9import Network.BitTorrent.Address
10 10
11 11
12instance Arbitrary PeerId where 12instance Arbitrary PeerId where
diff --git a/tests/Network/BitTorrent/CoreSpec.hs b/tests/Network/BitTorrent/CoreSpec.hs
index 460c52be..1e1a21a1 100644
--- a/tests/Network/BitTorrent/CoreSpec.hs
+++ b/tests/Network/BitTorrent/CoreSpec.hs
@@ -1,9 +1,9 @@
1-- | Re-export modules. 1-- | Re-export modules.
2module Network.BitTorrent.CoreSpec (spec) where 2module Network.BitTorrent.CoreSpec (spec) where
3import Network.BitTorrent.Core.FingerprintSpec as CoreSpec () 3import Network.BitTorrent.Core.FingerprintSpec as CoreSpec ()
4import Network.BitTorrent.Core.PeerAddrSpec as CoreSpec ()
4import Network.BitTorrent.Core.NodeInfoSpec as CoreSpec () 5import Network.BitTorrent.Core.NodeInfoSpec as CoreSpec ()
5import Network.BitTorrent.Core.PeerIdSpec as CoreSpec () 6import Network.BitTorrent.Core.PeerIdSpec as CoreSpec ()
6import Network.BitTorrent.Core.PeerAddrSpec as CoreSpec ()
7 7
8import Test.Hspec (Spec) 8import Test.Hspec (Spec)
9 9
diff --git a/tests/Network/BitTorrent/DHT/MessageSpec.hs b/tests/Network/BitTorrent/DHT/MessageSpec.hs
index 3d886fea..ab6e1ea5 100644
--- a/tests/Network/BitTorrent/DHT/MessageSpec.hs
+++ b/tests/Network/BitTorrent/DHT/MessageSpec.hs
@@ -8,7 +8,7 @@ import Data.ByteString.Lazy as BL
8import Data.Default 8import Data.Default
9import Data.List as L 9import Data.List as L
10import Data.Maybe 10import Data.Maybe
11import Network.BitTorrent.Core 11import Network.BitTorrent.Address
12import Network.BitTorrent.DHT.Message 12import Network.BitTorrent.DHT.Message
13import qualified Network.KRPC as KRPC (def) 13import qualified Network.KRPC as KRPC (def)
14import Network.KRPC hiding (def) 14import Network.KRPC hiding (def)
diff --git a/tests/Network/BitTorrent/DHT/QuerySpec.hs b/tests/Network/BitTorrent/DHT/QuerySpec.hs
index d25bd120..81c3b45b 100644
--- a/tests/Network/BitTorrent/DHT/QuerySpec.hs
+++ b/tests/Network/BitTorrent/DHT/QuerySpec.hs
@@ -9,7 +9,7 @@ import Data.Default
9import Data.List as L 9import Data.List as L
10import Test.Hspec 10import Test.Hspec
11 11
12import Network.BitTorrent.Core 12import Network.BitTorrent.Address
13import Network.BitTorrent.DHT 13import Network.BitTorrent.DHT
14import Network.BitTorrent.DHT.Session 14import Network.BitTorrent.DHT.Session
15import Network.BitTorrent.DHT.Query 15import Network.BitTorrent.DHT.Query
diff --git a/tests/Network/BitTorrent/DHT/RoutingSpec.hs b/tests/Network/BitTorrent/DHT/RoutingSpec.hs
index c4a33357..aeccff5f 100644
--- a/tests/Network/BitTorrent/DHT/RoutingSpec.hs
+++ b/tests/Network/BitTorrent/DHT/RoutingSpec.hs
@@ -8,7 +8,7 @@ import Data.Maybe
8import Test.Hspec 8import Test.Hspec
9import Test.QuickCheck 9import Test.QuickCheck
10 10
11import Network.BitTorrent.Core 11import Network.BitTorrent.Address
12import Network.BitTorrent.DHT.Routing as T 12import Network.BitTorrent.DHT.Routing as T
13 13
14import Network.BitTorrent.CoreSpec hiding (spec) 14import Network.BitTorrent.CoreSpec hiding (spec)
diff --git a/tests/Network/BitTorrent/DHT/SessionSpec.hs b/tests/Network/BitTorrent/DHT/SessionSpec.hs
index 1fe1d08a..522bd8df 100644
--- a/tests/Network/BitTorrent/DHT/SessionSpec.hs
+++ b/tests/Network/BitTorrent/DHT/SessionSpec.hs
@@ -10,7 +10,7 @@ import Data.List as L
10import Test.Hspec 10import Test.Hspec
11import Test.QuickCheck 11import Test.QuickCheck
12 12
13import Network.BitTorrent.Core 13import Network.BitTorrent.Address
14import Network.BitTorrent.DHT 14import Network.BitTorrent.DHT
15import Network.BitTorrent.DHT.Message 15import Network.BitTorrent.DHT.Message
16import Network.BitTorrent.DHT.Session 16import Network.BitTorrent.DHT.Session
diff --git a/tests/Network/BitTorrent/DHT/TokenSpec.hs b/tests/Network/BitTorrent/DHT/TokenSpec.hs
index 6353a24c..a45d2212 100644
--- a/tests/Network/BitTorrent/DHT/TokenSpec.hs
+++ b/tests/Network/BitTorrent/DHT/TokenSpec.hs
@@ -7,7 +7,7 @@ import Data.String
7import Test.Hspec 7import Test.Hspec
8import Test.QuickCheck 8import Test.QuickCheck
9 9
10import Network.BitTorrent.Core 10import Network.BitTorrent.Address
11import Network.BitTorrent.CoreSpec () 11import Network.BitTorrent.CoreSpec ()
12import Network.BitTorrent.DHT.Token as T 12import Network.BitTorrent.DHT.Token as T
13 13
diff --git a/tests/Network/BitTorrent/Exchange/ConnectionSpec.hs b/tests/Network/BitTorrent/Exchange/ConnectionSpec.hs
index ccbf2854..d654cda1 100644
--- a/tests/Network/BitTorrent/Exchange/ConnectionSpec.hs
+++ b/tests/Network/BitTorrent/Exchange/ConnectionSpec.hs
@@ -8,7 +8,7 @@ import Test.Hspec
8import Test.QuickCheck 8import Test.QuickCheck
9 9
10import Data.Torrent 10import Data.Torrent
11import Network.BitTorrent.Core 11import Network.BitTorrent.Address
12import Network.BitTorrent.Exchange.Connection 12import Network.BitTorrent.Exchange.Connection
13import Network.BitTorrent.Exchange.Message 13import Network.BitTorrent.Exchange.Message
14 14
diff --git a/tests/Network/BitTorrent/Exchange/MessageSpec.hs b/tests/Network/BitTorrent/Exchange/MessageSpec.hs
index 1395ba11..f82b034e 100644
--- a/tests/Network/BitTorrent/Exchange/MessageSpec.hs
+++ b/tests/Network/BitTorrent/Exchange/MessageSpec.hs
@@ -13,7 +13,7 @@ import Test.QuickCheck
13import Data.TorrentSpec () 13import Data.TorrentSpec ()
14import Data.Torrent.BitfieldSpec () 14import Data.Torrent.BitfieldSpec ()
15import Network.BitTorrent.CoreSpec () 15import Network.BitTorrent.CoreSpec ()
16import Network.BitTorrent.Core () 16import Network.BitTorrent.Address ()
17import Network.BitTorrent.Exchange.BlockSpec () 17import Network.BitTorrent.Exchange.BlockSpec ()
18import Network.BitTorrent.Exchange.Message 18import Network.BitTorrent.Exchange.Message
19 19
diff --git a/tests/Network/BitTorrent/Exchange/Session/MetadataSpec.hs b/tests/Network/BitTorrent/Exchange/Session/MetadataSpec.hs
index 5392d74b..fc5236da 100644
--- a/tests/Network/BitTorrent/Exchange/Session/MetadataSpec.hs
+++ b/tests/Network/BitTorrent/Exchange/Session/MetadataSpec.hs
@@ -8,7 +8,7 @@ import Test.QuickCheck
8 8
9import Data.BEncode as BE 9import Data.BEncode as BE
10import Data.Torrent as Torrent 10import Data.Torrent as Torrent
11import Network.BitTorrent.Core 11import Network.BitTorrent.Address
12import Network.BitTorrent.Exchange.Message 12import Network.BitTorrent.Exchange.Message
13import Network.BitTorrent.Exchange.Session.Metadata 13import Network.BitTorrent.Exchange.Session.Metadata
14 14
diff --git a/tests/Network/BitTorrent/Exchange/SessionSpec.hs b/tests/Network/BitTorrent/Exchange/SessionSpec.hs
index c2c76644..bf5b95a1 100644
--- a/tests/Network/BitTorrent/Exchange/SessionSpec.hs
+++ b/tests/Network/BitTorrent/Exchange/SessionSpec.hs
@@ -3,7 +3,7 @@ module Network.BitTorrent.Exchange.SessionSpec (spec) where
3import Test.Hspec 3import Test.Hspec
4 4
5import Data.Torrent 5import Data.Torrent
6import Network.BitTorrent.Core 6import Network.BitTorrent.Address
7import Network.BitTorrent.Exchange.Session 7import Network.BitTorrent.Exchange.Session
8 8
9import Config 9import Config
diff --git a/tests/Network/BitTorrent/Tracker/MessageSpec.hs b/tests/Network/BitTorrent/Tracker/MessageSpec.hs
index 439883a1..92fd8d79 100644
--- a/tests/Network/BitTorrent/Tracker/MessageSpec.hs
+++ b/tests/Network/BitTorrent/Tracker/MessageSpec.hs
@@ -18,11 +18,11 @@ import Test.QuickCheck
18 18
19import Data.TorrentSpec () 19import Data.TorrentSpec ()
20import Data.Torrent.ProgressSpec () 20import Data.Torrent.ProgressSpec ()
21import Network.BitTorrent.Core.PeerIdSpec () 21import Network.BitTorrent.Address ()
22import Network.BitTorrent.Core.PeerAddrSpec () 22import Network.BitTorrent.Address ()
23 23
24import Network.BitTorrent.Tracker.Message as Message 24import Network.BitTorrent.Tracker.Message as Message
25import Network.BitTorrent.Core 25import Network.BitTorrent.Address
26 26
27 27
28--prop_bencode :: Eq a => BEncode a => a -> Bool 28--prop_bencode :: Eq a => BEncode a => a -> Bool
diff --git a/tests/Network/BitTorrent/Tracker/RPC/UDPSpec.hs b/tests/Network/BitTorrent/Tracker/RPC/UDPSpec.hs
index 8a1ffc01..1ec3bdb7 100644
--- a/tests/Network/BitTorrent/Tracker/RPC/UDPSpec.hs
+++ b/tests/Network/BitTorrent/Tracker/RPC/UDPSpec.hs
@@ -9,7 +9,7 @@ import Data.List as L
9import Data.Maybe 9import Data.Maybe
10import Test.Hspec 10import Test.Hspec
11 11
12import Network.BitTorrent.Core 12import Network.BitTorrent.Address
13import Network.BitTorrent.Tracker.Message as Message 13import Network.BitTorrent.Tracker.Message as Message
14 14
15import Network.BitTorrent.Tracker.TestData 15import Network.BitTorrent.Tracker.TestData