mirror of
https://github.com/facebook/Haxl.git
synced 2024-12-23 08:43:16 +03:00
b03f2e5102
Summary: Most important thing I want to test is that when a memoized computation happens again - the writes are indeed duplicated in the environment. This diff adds tests for different ways memoized computation can happen in conjunction with non-memoized computation.. Reviewed By: simonmar Differential Revision: D14386667 fbshipit-source-id: a03a9a41697def968bf6e11ad66b9dd9f3a9a7f1
45 lines
1.2 KiB
Haskell
45 lines
1.2 KiB
Haskell
-- Copyright (c) 2014-present, Facebook, Inc.
|
|
-- All rights reserved.
|
|
--
|
|
-- This source code is distributed under the terms of a BSD license,
|
|
-- found in the LICENSE file.
|
|
|
|
{-# LANGUAGE CPP, OverloadedStrings #-}
|
|
module AllTests (allTests) where
|
|
|
|
import TestExampleDataSource
|
|
import BatchTests
|
|
import CoreTests
|
|
import DataCacheTest
|
|
#if __GLASGOW_HASKELL__ >= 801
|
|
import AdoTests
|
|
#endif
|
|
#if __GLASGOW_HASKELL__ >= 710
|
|
import ProfileTests
|
|
#endif
|
|
import MemoizationTests
|
|
import TestBadDataSource
|
|
import FullyAsyncTest
|
|
import WriteTests
|
|
|
|
import Test.HUnit
|
|
|
|
allTests :: Test
|
|
allTests = TestList
|
|
[ TestLabel "ExampleDataSource" TestExampleDataSource.tests
|
|
, TestLabel "BatchTests-future" $ BatchTests.tests True
|
|
, TestLabel "BatchTests-sync" $ BatchTests.tests False
|
|
, TestLabel "CoreTests" CoreTests.tests
|
|
, TestLabel "DataCacheTests" DataCacheTest.tests
|
|
#if __GLASGOW_HASKELL__ >= 801
|
|
, TestLabel "AdoTests" $ AdoTests.tests False
|
|
#endif
|
|
#if __GLASGOW_HASKELL__ >= 710
|
|
, TestLabel "ProfileTests" ProfileTests.tests
|
|
#endif
|
|
, TestLabel "MemoizationTests" MemoizationTests.tests
|
|
, TestLabel "BadDataSourceTests" TestBadDataSource.tests
|
|
, TestLabel "FullyAsyncTest" FullyAsyncTest.tests
|
|
, TestLabel "WriteTest" WriteTests.tests
|
|
]
|