cardano-rpc:testlib
Safe HaskellNone
LanguageHaskell2010

Test.Cardano.Rpc.RecordedQuery

Description

Actions that record their name when they run, and the values they return, for testing which queries a field fill runs.

Synopsis

Documentation

runRecordedFill Source #

Arguments

:: Message msg 
=> [FieldPath]

Field mask paths, rooted at the response

-> FieldFill (Writer [Text]) msg

Fills the response from recorded actions

-> (msg, [Text]) 

Run a fill for the mask paths, recording the session and each query it runs.

recorded Source #

Arguments

:: Text

The name to record

-> a

The result of the action

-> Writer [Text] a 

An action that records its name when it runs.

session Source #

Arguments

:: Writer [Text] a

The actions to run in the session

-> Writer [Text] a 

A runner that records each session it opens.

realTip :: ChainPoint Source #

The chain tip that the recorded tip queries return.