diff --git a/ouroboros-network-protocols/CHANGELOG.md b/ouroboros-network-protocols/CHANGELOG.md index a28097afc62..d2b83b8cfde 100644 --- a/ouroboros-network-protocols/CHANGELOG.md +++ b/ouroboros-network-protocols/CHANGELOG.md @@ -4,6 +4,7 @@ ### Breaking changes +* Renamed `Test.Ouroboros.Network.Testing.Utils -> Test.Ouroboros.Network.Protocol.Utils` * Removed deprecated APIs: * `chainSyncClientNull` * `localStateQueryClientNull` diff --git a/ouroboros-network-protocols/ouroboros-network-protocols.cabal b/ouroboros-network-protocols/ouroboros-network-protocols.cabal index d36d2743ed6..a84f14edf8f 100644 --- a/ouroboros-network-protocols/ouroboros-network-protocols.cabal +++ b/ouroboros-network-protocols/ouroboros-network-protocols.cabal @@ -172,7 +172,7 @@ library testlib Test.ChainProducerState Test.Data.CDDL Test.Data.PipeliningDepth - Test.Ouroboros.Network.Testing.Utils + Test.Ouroboros.Network.Protocol.Utils build-depends: QuickCheck, diff --git a/ouroboros-network-protocols/testlib/Ouroboros/Network/Protocol/BlockFetch/Test.hs b/ouroboros-network-protocols/testlib/Ouroboros/Network/Protocol/BlockFetch/Test.hs index 6d75c7daf38..b2bbc85d0bc 100644 --- a/ouroboros-network-protocols/testlib/Ouroboros/Network/Protocol/BlockFetch/Test.hs +++ b/ouroboros-network-protocols/testlib/Ouroboros/Network/Protocol/BlockFetch/Test.hs @@ -45,7 +45,7 @@ import Ouroboros.Network.Protocol.BlockFetch.Type import Test.Data.PipeliningDepth (PipeliningDepth (..)) import Test.ChainGenerators (TestChainAndPoints (..)) -import Test.Ouroboros.Network.Testing.Utils (prop_codec_cborM, +import Test.Ouroboros.Network.Protocol.Utils (prop_codec_cborM, prop_codec_valid_cbor_encoding, splits2, splits3) import Test.QuickCheck diff --git a/ouroboros-network-protocols/testlib/Ouroboros/Network/Protocol/ChainSync/Test.hs b/ouroboros-network-protocols/testlib/Ouroboros/Network/Protocol/ChainSync/Test.hs index f36b6b9d7ea..9d1af9b738e 100644 --- a/ouroboros-network-protocols/testlib/Ouroboros/Network/Protocol/ChainSync/Test.hs +++ b/ouroboros-network-protocols/testlib/Ouroboros/Network/Protocol/ChainSync/Test.hs @@ -53,7 +53,7 @@ import Test.Data.PipeliningDepth (PipeliningDepth (..)) import Test.ChainGenerators () import Test.ChainProducerState (ChainProducerStateForkTest (..)) -import Test.Ouroboros.Network.Testing.Utils (prop_codec_cborM, +import Test.Ouroboros.Network.Protocol.Utils (prop_codec_cborM, prop_codec_valid_cbor_encoding, splits2, splits3) import Test.QuickCheck hiding (Result) diff --git a/ouroboros-network-protocols/testlib/Ouroboros/Network/Protocol/Handshake/Test.hs b/ouroboros-network-protocols/testlib/Ouroboros/Network/Protocol/Handshake/Test.hs index c119788a377..151bfa67e40 100644 --- a/ouroboros-network-protocols/testlib/Ouroboros/Network/Protocol/Handshake/Test.hs +++ b/ouroboros-network-protocols/testlib/Ouroboros/Network/Protocol/Handshake/Test.hs @@ -45,7 +45,7 @@ import Network.Mux.Types (MiniProtocolDir (..), MiniProtocolNum (..), import Network.TypedProtocol.Codec import Network.TypedProtocol.Proofs -import Test.Ouroboros.Network.Testing.Utils (prop_codec_cborM, +import Test.Ouroboros.Network.Protocol.Utils (prop_codec_cborM, prop_codec_valid_cbor_encoding, splits2, splits3) import Ouroboros.Network.Channel @@ -165,8 +165,7 @@ tests = -- wrongly encoded data (protocol version & associated version data mismatch) -- --- | --- Testing version number +-- | Testing version number -- data VersionNumber = Version_0 diff --git a/ouroboros-network-protocols/testlib/Ouroboros/Network/Protocol/KeepAlive/Test.hs b/ouroboros-network-protocols/testlib/Ouroboros/Network/Protocol/KeepAlive/Test.hs index 481f4f603a4..55ee3cff6b0 100644 --- a/ouroboros-network-protocols/testlib/Ouroboros/Network/Protocol/KeepAlive/Test.hs +++ b/ouroboros-network-protocols/testlib/Ouroboros/Network/Protocol/KeepAlive/Test.hs @@ -34,7 +34,7 @@ import Ouroboros.Network.Protocol.KeepAlive.Examples import Ouroboros.Network.Protocol.KeepAlive.Server import Ouroboros.Network.Protocol.KeepAlive.Type -import Test.Ouroboros.Network.Testing.Utils (prop_codec_valid_cbor_encoding, +import Test.Ouroboros.Network.Protocol.Utils (prop_codec_valid_cbor_encoding, splits2, splits3) diff --git a/ouroboros-network-protocols/testlib/Ouroboros/Network/Protocol/LocalStateQuery/Test.hs b/ouroboros-network-protocols/testlib/Ouroboros/Network/Protocol/LocalStateQuery/Test.hs index 4019fde3142..794476d74d6 100644 --- a/ouroboros-network-protocols/testlib/Ouroboros/Network/Protocol/LocalStateQuery/Test.hs +++ b/ouroboros-network-protocols/testlib/Ouroboros/Network/Protocol/LocalStateQuery/Test.hs @@ -51,7 +51,7 @@ import Ouroboros.Network.Protocol.LocalStateQuery.Server import Ouroboros.Network.Protocol.LocalStateQuery.Type import Test.ChainGenerators () -import Test.Ouroboros.Network.Testing.Utils +import Test.Ouroboros.Network.Protocol.Utils import Test.QuickCheck as QC hiding (Result) import Test.Tasty (TestTree, testGroup) diff --git a/ouroboros-network-protocols/testlib/Ouroboros/Network/Protocol/LocalTxMonitor/Test.hs b/ouroboros-network-protocols/testlib/Ouroboros/Network/Protocol/LocalTxMonitor/Test.hs index c81d8eebd3b..95ce2789cbe 100644 --- a/ouroboros-network-protocols/testlib/Ouroboros/Network/Protocol/LocalTxMonitor/Test.hs +++ b/ouroboros-network-protocols/testlib/Ouroboros/Network/Protocol/LocalTxMonitor/Test.hs @@ -36,7 +36,7 @@ import Ouroboros.Network.Protocol.LocalTxMonitor.Server import Ouroboros.Network.Protocol.LocalTxMonitor.Type import Test.ChainGenerators () -import Test.Ouroboros.Network.Testing.Utils (prop_codec_cborM, +import Test.Ouroboros.Network.Protocol.Utils (prop_codec_cborM, prop_codec_valid_cbor_encoding, splits2, splits3) import Test.QuickCheck hiding (Result) import Test.Tasty (TestTree, testGroup) diff --git a/ouroboros-network-protocols/testlib/Ouroboros/Network/Protocol/LocalTxSubmission/Test.hs b/ouroboros-network-protocols/testlib/Ouroboros/Network/Protocol/LocalTxSubmission/Test.hs index 8228acbcd75..2a69c81ac06 100644 --- a/ouroboros-network-protocols/testlib/Ouroboros/Network/Protocol/LocalTxSubmission/Test.hs +++ b/ouroboros-network-protocols/testlib/Ouroboros/Network/Protocol/LocalTxSubmission/Test.hs @@ -44,7 +44,7 @@ import Ouroboros.Network.Protocol.LocalTxSubmission.Server import Ouroboros.Network.Protocol.LocalTxSubmission.Type import Test.Data.CDDL (Any (..)) -import Test.Ouroboros.Network.Testing.Utils (prop_codec_cborM, +import Test.Ouroboros.Network.Protocol.Utils (prop_codec_cborM, prop_codec_valid_cbor_encoding, splits2, splits3) import Control.DeepSeq diff --git a/ouroboros-network-protocols/testlib/Ouroboros/Network/Protocol/PeerSharing/Test.hs b/ouroboros-network-protocols/testlib/Ouroboros/Network/Protocol/PeerSharing/Test.hs index 2f3533176ef..fef0ceca1af 100644 --- a/ouroboros-network-protocols/testlib/Ouroboros/Network/Protocol/PeerSharing/Test.hs +++ b/ouroboros-network-protocols/testlib/Ouroboros/Network/Protocol/PeerSharing/Test.hs @@ -36,7 +36,7 @@ import Ouroboros.Network.Protocol.PeerSharing.Examples (peerSharingClientCollect, peerSharingServerReplicate) import Ouroboros.Network.Protocol.PeerSharing.Server (peerSharingServerPeer) import Ouroboros.Network.Protocol.PeerSharing.Type -import Test.Ouroboros.Network.Testing.Utils (prop_codec_cborM, +import Test.Ouroboros.Network.Protocol.Utils (prop_codec_cborM, prop_codec_valid_cbor_encoding, splits2, splits3) import Test.QuickCheck.Function (Fun, applyFun) import Test.Tasty (TestTree, testGroup) diff --git a/ouroboros-network-protocols/testlib/Ouroboros/Network/Protocol/TxSubmission2/Test.hs b/ouroboros-network-protocols/testlib/Ouroboros/Network/Protocol/TxSubmission2/Test.hs index 41532fb7eb6..90235db9811 100644 --- a/ouroboros-network-protocols/testlib/Ouroboros/Network/Protocol/TxSubmission2/Test.hs +++ b/ouroboros-network-protocols/testlib/Ouroboros/Network/Protocol/TxSubmission2/Test.hs @@ -51,7 +51,7 @@ import Ouroboros.Network.Protocol.TxSubmission2.Server import Ouroboros.Network.Protocol.TxSubmission2.Type import Test.Data.CDDL (Any (..)) -import Test.Ouroboros.Network.Testing.Utils (prop_codec_cborM, +import Test.Ouroboros.Network.Protocol.Utils (prop_codec_cborM, prop_codec_valid_cbor_encoding, splits2, splits3) import Control.DeepSeq diff --git a/ouroboros-network-protocols/testlib/Test/Ouroboros/Network/Testing/Utils.hs b/ouroboros-network-protocols/testlib/Test/Ouroboros/Network/Protocol/Utils.hs similarity index 98% rename from ouroboros-network-protocols/testlib/Test/Ouroboros/Network/Testing/Utils.hs rename to ouroboros-network-protocols/testlib/Test/Ouroboros/Network/Protocol/Utils.hs index 69500874e90..f57438f7f26 100644 --- a/ouroboros-network-protocols/testlib/Test/Ouroboros/Network/Testing/Utils.hs +++ b/ouroboros-network-protocols/testlib/Test/Ouroboros/Network/Protocol/Utils.hs @@ -3,7 +3,7 @@ {-# LANGUAGE NamedFieldPuns #-} {-# LANGUAGE RankNTypes #-} -- TODO rename to `Test.Ouroboros.Network.Protocols.Utils` -module Test.Ouroboros.Network.Testing.Utils where +module Test.Ouroboros.Network.Protocol.Utils where import Codec.CBOR.FlatTerm qualified as CBOR import Codec.CBOR.Read qualified as CBOR