From 12cbb3af2413dc28838ed271351dda16df8f7bdb Mon Sep 17 00:00:00 2001 From: joe Date: Fri, 15 Sep 2017 06:22:10 -0400 Subject: Separating dht-client library from bittorrent package. --- .../tests/Network/BitTorrent/DHT/TestData.hs | 45 ++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 bittorrent/tests/Network/BitTorrent/DHT/TestData.hs (limited to 'bittorrent/tests/Network/BitTorrent/DHT/TestData.hs') diff --git a/bittorrent/tests/Network/BitTorrent/DHT/TestData.hs b/bittorrent/tests/Network/BitTorrent/DHT/TestData.hs new file mode 100644 index 00000000..e9473cbb --- /dev/null +++ b/bittorrent/tests/Network/BitTorrent/DHT/TestData.hs @@ -0,0 +1,45 @@ +module Network.BitTorrent.DHT.TestData + ( TestEntry (..) + , testTorrents + ) where + +import Data.Torrent + +data TestEntry = TestEntry + { entryName :: String + , entryHash :: InfoHash + , entryPeers :: Int -- ^ approximate number of peers, may change with time + } + +testTorrents :: [TestEntry] +testTorrents = + [ TestEntry + { entryName = "Automate with Arduino, Android..." + , entryHash = "8c0433e541dc5d1cfc095799cef171cd4eb586f7" + , entryPeers = 300 + } + + , TestEntry + { entryName = "Beginning Programming with Java For Dummies" + , entryHash = "fd8967721731cc16c8b203a03e49ce839cecf184" + , entryPeers = 200 + } + + , TestEntry + { entryName = "The C Programming Language" + , entryHash = "146d13f090e50e97091dbbe5b37678dd1471cfad" + , entryPeers = 100 + } + + , TestEntry + { entryName = "The C++ Programming Language" + , entryHash = "8e8e8e6319031a22cff26d895afe050085c84a7f" + , entryPeers = 50 + } + + , TestEntry + { entryName = "Game and Graphics Programming for iOS..." + , entryHash = "703d0595b727fccbfaa3d03be25f57347ccfd6de" + , entryPeers = 30 + } + ] -- cgit v1.2.3