X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=src%2FReport.hs;h=0f77f511448014e3a05572da885be4f94f29650a;hb=HEAD;hp=82dd07bc8750944fc9e2f8c526005d4f3e9f69a3;hpb=66345cef9e56c6175cb6f25f41fbf628648d15a3;p=list-remote-forwards.git diff --git a/src/Report.hs b/src/Report.hs index 82dd07b..0f77f51 100644 --- a/src/Report.hs +++ b/src/Report.hs @@ -15,24 +15,26 @@ import Database.HDBC ( prepare, sFetchAllRows') import Database.HDBC.Sqlite3 ( connectSqlite3 ) -import System.Console.CmdArgs.Default ( Default(..) ) +import System.Console.CmdArgs.Default ( Default( def ) ) import Test.Tasty ( TestTree, testGroup ) import Test.Tasty.HUnit ( (@?=), testCase ) -import Configuration ( Configuration(..) ) +import Configuration ( Configuration( domain_query, + exclude_mx, + forward_query) ) import DNS ( MxSetMap, NormalDomain, mx_set_map, normalize_string ) import Forward ( - Forward(..), + Forward(), address_domain, dropby_goto_domains, fwd, pretty_print, strings_to_forwards ) -import MxList ( MxList(..) ) +import MxList ( MxList( get_mxs ) ) -- | Type synonym to make the signatures below a little more clear. -- WARNING: Also defined in the "Forward" module. @@ -259,7 +261,7 @@ test_dropby_mxlist_compares_normalized = let droplist = ["mx.EXAMple.com", "mx2.example.COM"] let normal_droplist = map normalize_string droplist let actual = dropby_mxlist normal_droplist mx_map fwds - let expected = [] + let expected = [] :: [Forward] actual @?= expected where desc = "dropby_mxlist only performs comparisons on normalized names"