diff options
author | Sam Truzjan <pxqr.sta@gmail.com> | 2014-04-08 02:36:18 +0400 |
---|---|---|
committer | Sam Truzjan <pxqr.sta@gmail.com> | 2014-04-08 02:36:18 +0400 |
commit | 75711985512c8578e913a1b464816968b4aef5dd (patch) | |
tree | 5ab77d69af0e9bc315b58f1df6ba100e318adfce /tests/Network/BitTorrent | |
parent | 7e597cd924d2149b10f900c7dc14ce6e1e321cb5 (diff) |
Merge PeerAddr and NodeAddr modules
Diffstat (limited to 'tests/Network/BitTorrent')
-rw-r--r-- | tests/Network/BitTorrent/Core/FingerprintSpec.hs | 2 | ||||
-rw-r--r-- | tests/Network/BitTorrent/Core/NodeInfoSpec.hs | 2 | ||||
-rw-r--r-- | tests/Network/BitTorrent/Core/PeerAddrSpec.hs | 4 | ||||
-rw-r--r-- | tests/Network/BitTorrent/Core/PeerIdSpec.hs | 2 | ||||
-rw-r--r-- | tests/Network/BitTorrent/CoreSpec.hs | 2 | ||||
-rw-r--r-- | tests/Network/BitTorrent/DHT/MessageSpec.hs | 2 | ||||
-rw-r--r-- | tests/Network/BitTorrent/DHT/QuerySpec.hs | 2 | ||||
-rw-r--r-- | tests/Network/BitTorrent/DHT/RoutingSpec.hs | 2 | ||||
-rw-r--r-- | tests/Network/BitTorrent/DHT/SessionSpec.hs | 2 | ||||
-rw-r--r-- | tests/Network/BitTorrent/DHT/TokenSpec.hs | 2 | ||||
-rw-r--r-- | tests/Network/BitTorrent/Exchange/ConnectionSpec.hs | 2 | ||||
-rw-r--r-- | tests/Network/BitTorrent/Exchange/MessageSpec.hs | 2 | ||||
-rw-r--r-- | tests/Network/BitTorrent/Exchange/Session/MetadataSpec.hs | 2 | ||||
-rw-r--r-- | tests/Network/BitTorrent/Exchange/SessionSpec.hs | 2 | ||||
-rw-r--r-- | tests/Network/BitTorrent/Tracker/MessageSpec.hs | 6 | ||||
-rw-r--r-- | tests/Network/BitTorrent/Tracker/RPC/UDPSpec.hs | 2 |
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> |
2 | module Network.BitTorrent.Core.FingerprintSpec (spec) where | 2 | module Network.BitTorrent.Core.FingerprintSpec (spec) where |
3 | import Test.Hspec | 3 | import Test.Hspec |
4 | import Network.BitTorrent.Core.PeerId | 4 | import Network.BitTorrent.Address |
5 | 5 | ||
6 | spec :: Spec | 6 | spec :: Spec |
7 | spec = do | 7 | spec = 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 | |||
6 | import Test.Hspec | 6 | import Test.Hspec |
7 | import Test.QuickCheck | 7 | import Test.QuickCheck |
8 | 8 | ||
9 | import Network.BitTorrent.Core | 9 | import Network.BitTorrent.Address |
10 | import Network.BitTorrent.Core.PeerAddrSpec () | 10 | import Network.BitTorrent.Core.PeerAddrSpec () |
11 | 11 | ||
12 | instance Arbitrary NodeId where | 12 | instance 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 | |||
11 | import Test.Hspec | 11 | import Test.Hspec |
12 | import Test.QuickCheck | 12 | import Test.QuickCheck |
13 | 13 | ||
14 | import Network.BitTorrent.Core.PeerIdSpec hiding (spec) | 14 | import Network.BitTorrent.Core.PeerIdSpec () |
15 | import Network.BitTorrent.Core.PeerAddr | 15 | import Network.BitTorrent.Address |
16 | 16 | ||
17 | instance Arbitrary IPv4 where | 17 | instance 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 | |||
6 | import Test.Hspec | 6 | import Test.Hspec |
7 | import Test.QuickCheck | 7 | import Test.QuickCheck |
8 | import Test.QuickCheck.Instances () | 8 | import Test.QuickCheck.Instances () |
9 | import Network.BitTorrent.Core.PeerId | 9 | import Network.BitTorrent.Address |
10 | 10 | ||
11 | 11 | ||
12 | instance Arbitrary PeerId where | 12 | instance 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. |
2 | module Network.BitTorrent.CoreSpec (spec) where | 2 | module Network.BitTorrent.CoreSpec (spec) where |
3 | import Network.BitTorrent.Core.FingerprintSpec as CoreSpec () | 3 | import Network.BitTorrent.Core.FingerprintSpec as CoreSpec () |
4 | import Network.BitTorrent.Core.PeerAddrSpec as CoreSpec () | ||
4 | import Network.BitTorrent.Core.NodeInfoSpec as CoreSpec () | 5 | import Network.BitTorrent.Core.NodeInfoSpec as CoreSpec () |
5 | import Network.BitTorrent.Core.PeerIdSpec as CoreSpec () | 6 | import Network.BitTorrent.Core.PeerIdSpec as CoreSpec () |
6 | import Network.BitTorrent.Core.PeerAddrSpec as CoreSpec () | ||
7 | 7 | ||
8 | import Test.Hspec (Spec) | 8 | import 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 | |||
8 | import Data.Default | 8 | import Data.Default |
9 | import Data.List as L | 9 | import Data.List as L |
10 | import Data.Maybe | 10 | import Data.Maybe |
11 | import Network.BitTorrent.Core | 11 | import Network.BitTorrent.Address |
12 | import Network.BitTorrent.DHT.Message | 12 | import Network.BitTorrent.DHT.Message |
13 | import qualified Network.KRPC as KRPC (def) | 13 | import qualified Network.KRPC as KRPC (def) |
14 | import Network.KRPC hiding (def) | 14 | import 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 | |||
9 | import Data.List as L | 9 | import Data.List as L |
10 | import Test.Hspec | 10 | import Test.Hspec |
11 | 11 | ||
12 | import Network.BitTorrent.Core | 12 | import Network.BitTorrent.Address |
13 | import Network.BitTorrent.DHT | 13 | import Network.BitTorrent.DHT |
14 | import Network.BitTorrent.DHT.Session | 14 | import Network.BitTorrent.DHT.Session |
15 | import Network.BitTorrent.DHT.Query | 15 | import 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 | |||
8 | import Test.Hspec | 8 | import Test.Hspec |
9 | import Test.QuickCheck | 9 | import Test.QuickCheck |
10 | 10 | ||
11 | import Network.BitTorrent.Core | 11 | import Network.BitTorrent.Address |
12 | import Network.BitTorrent.DHT.Routing as T | 12 | import Network.BitTorrent.DHT.Routing as T |
13 | 13 | ||
14 | import Network.BitTorrent.CoreSpec hiding (spec) | 14 | import 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 | |||
10 | import Test.Hspec | 10 | import Test.Hspec |
11 | import Test.QuickCheck | 11 | import Test.QuickCheck |
12 | 12 | ||
13 | import Network.BitTorrent.Core | 13 | import Network.BitTorrent.Address |
14 | import Network.BitTorrent.DHT | 14 | import Network.BitTorrent.DHT |
15 | import Network.BitTorrent.DHT.Message | 15 | import Network.BitTorrent.DHT.Message |
16 | import Network.BitTorrent.DHT.Session | 16 | import 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 | |||
7 | import Test.Hspec | 7 | import Test.Hspec |
8 | import Test.QuickCheck | 8 | import Test.QuickCheck |
9 | 9 | ||
10 | import Network.BitTorrent.Core | 10 | import Network.BitTorrent.Address |
11 | import Network.BitTorrent.CoreSpec () | 11 | import Network.BitTorrent.CoreSpec () |
12 | import Network.BitTorrent.DHT.Token as T | 12 | import 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 | |||
8 | import Test.QuickCheck | 8 | import Test.QuickCheck |
9 | 9 | ||
10 | import Data.Torrent | 10 | import Data.Torrent |
11 | import Network.BitTorrent.Core | 11 | import Network.BitTorrent.Address |
12 | import Network.BitTorrent.Exchange.Connection | 12 | import Network.BitTorrent.Exchange.Connection |
13 | import Network.BitTorrent.Exchange.Message | 13 | import 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 | |||
13 | import Data.TorrentSpec () | 13 | import Data.TorrentSpec () |
14 | import Data.Torrent.BitfieldSpec () | 14 | import Data.Torrent.BitfieldSpec () |
15 | import Network.BitTorrent.CoreSpec () | 15 | import Network.BitTorrent.CoreSpec () |
16 | import Network.BitTorrent.Core () | 16 | import Network.BitTorrent.Address () |
17 | import Network.BitTorrent.Exchange.BlockSpec () | 17 | import Network.BitTorrent.Exchange.BlockSpec () |
18 | import Network.BitTorrent.Exchange.Message | 18 | import 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 | ||
9 | import Data.BEncode as BE | 9 | import Data.BEncode as BE |
10 | import Data.Torrent as Torrent | 10 | import Data.Torrent as Torrent |
11 | import Network.BitTorrent.Core | 11 | import Network.BitTorrent.Address |
12 | import Network.BitTorrent.Exchange.Message | 12 | import Network.BitTorrent.Exchange.Message |
13 | import Network.BitTorrent.Exchange.Session.Metadata | 13 | import 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 | |||
3 | import Test.Hspec | 3 | import Test.Hspec |
4 | 4 | ||
5 | import Data.Torrent | 5 | import Data.Torrent |
6 | import Network.BitTorrent.Core | 6 | import Network.BitTorrent.Address |
7 | import Network.BitTorrent.Exchange.Session | 7 | import Network.BitTorrent.Exchange.Session |
8 | 8 | ||
9 | import Config | 9 | import 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 | ||
19 | import Data.TorrentSpec () | 19 | import Data.TorrentSpec () |
20 | import Data.Torrent.ProgressSpec () | 20 | import Data.Torrent.ProgressSpec () |
21 | import Network.BitTorrent.Core.PeerIdSpec () | 21 | import Network.BitTorrent.Address () |
22 | import Network.BitTorrent.Core.PeerAddrSpec () | 22 | import Network.BitTorrent.Address () |
23 | 23 | ||
24 | import Network.BitTorrent.Tracker.Message as Message | 24 | import Network.BitTorrent.Tracker.Message as Message |
25 | import Network.BitTorrent.Core | 25 | import 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 | |||
9 | import Data.Maybe | 9 | import Data.Maybe |
10 | import Test.Hspec | 10 | import Test.Hspec |
11 | 11 | ||
12 | import Network.BitTorrent.Core | 12 | import Network.BitTorrent.Address |
13 | import Network.BitTorrent.Tracker.Message as Message | 13 | import Network.BitTorrent.Tracker.Message as Message |
14 | 14 | ||
15 | import Network.BitTorrent.Tracker.TestData | 15 | import Network.BitTorrent.Tracker.TestData |