anchor.diff:  -module(pgsql_tests).
   
   -export([run_tests/0]).
  -%%-compile([export_all]).
  +-compile([export_all]).
   
   -include_lib("eunit/include/eunit.hrl").
   -include_lib("public_key/include/public_key.hrl").
  
positive.code: 
  -define(ssl_apps, [crypto, public_key, ssl]).
  
  connect_test() ->
      connect_only([]).
  
  connect_to_db_test() ->
      connect_only([{database, "epgsql_test_db1"}]).
  
  connect_as_test() ->
      connect_only(["epgsql_test", [{database, "epgsql_test_db1"}]]).
  
  connect_with_cleartext_test() ->
      connect_only(["epgsql_test_cleartext",
                    "epgsql_test_cleartext",
                    [{database, "epgsql_test_db1"}]]).
  
  connect_with_md5_test() ->
      connect_only(["epgsql_test_md5",
                    "epgsql_test_md5",
                    [{database, "epgsql_test_db1"}]]).
  
  connect_with_invalid_user_test() ->
      {error, Why} =
          pgsql:connect(?host,
                        "epgsql_test_invalid",
                        "epgsql_test_invalid",
                        [{port, ?port}, {database, "epgsql_test_db1"}]),
  
negative.code:       end,
        [{async, self()}]).
  
  application_test(_Module) ->
      lists:foreach(fun application:start/1, ?ssl_apps),
      ok = application:start(epgsql).
  
  