mirror of
https://github.com/facebook/Haxl.git
synced 2024-12-24 17:23:03 +03:00
dfd8a4655e
Summary: Test that the ApplicativeDo extension batches things correctly in the Haxl monad. Test Plan: beholdunittests Reviewed By: bnitka@fb.com Subscribers: ldbrandy, memo, watashi, smarlow, akr, bnitka, jcoens FB internal diff: D2039149 Tasks: 5504687 Signature: t1:2039149:1430501733:98fd1cf0f69663d6db3b07c3aed6e261ae9884d6
27 lines
593 B
Haskell
27 lines
593 B
Haskell
{-# LANGUAGE CPP, RebindableSyntax, OverloadedStrings #-}
|
|
module Main where
|
|
|
|
import TestExampleDataSource
|
|
import BatchTests
|
|
import CoreTests
|
|
import DataCacheTest
|
|
#ifdef HAVE_APPLICATIVEDO
|
|
import AdoTests
|
|
#endif
|
|
|
|
import Data.String
|
|
import Test.HUnit
|
|
|
|
import Haxl.Prelude
|
|
|
|
main :: IO Counts
|
|
main = runTestTT $ TestList
|
|
[ TestLabel "ExampleDataSource" TestExampleDataSource.tests
|
|
, TestLabel "BatchTests" BatchTests.tests
|
|
, TestLabel "CoreTests" CoreTests.tests
|
|
, TestLabel "DataCacheTests" DataCacheTest.tests
|
|
#ifdef HAVE_APPLICATIVEDO
|
|
, TestLabel "AdoTests" AdoTests.tests
|
|
#endif
|
|
]
|