-
-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
909ccf4
commit 7ea4d69
Showing
6 changed files
with
142 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,33 @@ | ||
{-# LANGUAGE CPP #-} | ||
{-# LANGUAGE DataKinds #-} | ||
{-# LANGUAGE GADTs #-} | ||
{-# LANGUAGE LambdaCase #-} | ||
{-# LANGUAGE OverloadedStrings #-} | ||
{-# LANGUAGE PatternSynonyms #-} | ||
{-# LANGUAGE PostfixOperators #-} | ||
{-# LANGUAGE RankNTypes #-} | ||
{-# LANGUAGE ScopedTypeVariables #-} | ||
{-# LANGUAGE TypeApplications #-} | ||
|
||
module AgentTests (agentTests) where | ||
|
||
import AgentTests.ConnectionRequestTests | ||
import AgentTests.DoubleRatchetTests (doubleRatchetTests) | ||
import AgentTests.FunctionalAPITests (functionalAPITests) | ||
import AgentTests.MigrationTests (migrationTests) | ||
import AgentTests.NotificationTests (notificationTests) | ||
import AgentTests.SQLiteTests (storeTests) | ||
import AgentTests.ServerChoice (serverChoiceTests) | ||
import Simplex.Messaging.Transport (ATransport (..)) | ||
import Test.Hspec | ||
#if !defined(dbPostgres) | ||
import AgentTests.NotificationTests (notificationTests) | ||
import AgentTests.SQLiteTests (storeTests) | ||
#endif | ||
|
||
agentTests :: ATransport -> Spec | ||
agentTests (ATransport t) = do | ||
describe "Connection request" connectionRequestTests | ||
describe "Double ratchet tests" doubleRatchetTests | ||
describe "Functional API" $ functionalAPITests (ATransport t) | ||
#if !defined(dbPostgres) | ||
describe "Notification tests" $ notificationTests (ATransport t) | ||
describe "SQLite store" storeTests | ||
#endif | ||
describe "Chosen servers" serverChoiceTests | ||
describe "Migration tests" migrationTests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.