Skip to content

Commit

Permalink
ouroboros-network-protocols:testlib: renamed Utils module
Browse files Browse the repository at this point in the history
`Test.Ouroboros.Network.Testing.Utils -> Test.Ouroboros.Network.Protocol.Utils`
  • Loading branch information
coot committed Dec 19, 2024
1 parent f978ce6 commit ebecd4a
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 13 deletions.
1 change: 1 addition & 0 deletions ouroboros-network-protocols/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

### Breaking changes

* Renamed `Test.Ouroboros.Network.Testing.Utils -> Test.Ouroboros.Network.Protocol.Utils`
* Removed deprecated APIs:
* `chainSyncClientNull`
* `localStateQueryClientNull`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -165,8 +165,7 @@ tests =
-- wrongly encoded data (protocol version & associated version data mismatch)
--

-- |
-- Testing version number
-- | Testing version number
--
data VersionNumber
= Version_0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ebecd4a

Please sign in to comment.