packages feed

keiro-dsl-0.2.0.0: test/conformance-newsurface/Generated/TransferRouting/Hospital_load/ReadModelHarness.hs

-- @generated by keiro-dsl; do not edit. Regenerated from the .keiro spec.
module Generated.TransferRouting.Hospital_load.ReadModelHarness (readModelFacts, runReadModelFacts) where

-- | (fact, expected from notation, actual shared derivation/lowering).
readModelFacts :: [(String, String, String)]
readModelFacts =
    [ ("registryName", "transfer-routing-hospital-load", "transfer-routing-hospital-load")
    , ("subscriptionName", "transfer-routing-hospital-load-sub", "transfer-routing-hospital-load-sub")
    , ("shapeHash", "fnv1a:977395d28f254ddb", "fnv1a:977395d28f254ddb")
    , ("asyncProjectionName", "transfer-routing-hospital-load-async", "transfer-routing-hospital-load-async")
    , ("consistency", "Eventual", "Eventual")
    , ("strongScope", "EntireLog", "EntireLog")
    ]

runReadModelFacts :: IO Bool
runReadModelFacts = do
    let failures = [(fact, expected, actual) | (fact, expected, actual) <- readModelFacts, expected /= actual]
    mapM_ (\(fact, expected, actual) -> putStrLn ("FAIL  " <> fact <> " expected=" <> show expected <> " actual=" <> show actual)) failures
    pure (null failures)