From a9fd65879b539b7ead5f91d8477d488105d64ef6 Mon Sep 17 00:00:00 2001 From: Brian Cully Date: Tue, 7 Feb 2012 16:15:44 -0500 Subject: Remove tests from mysqlerl.erl. --- src/mysqlerl.erl | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'src') diff --git a/src/mysqlerl.erl b/src/mysqlerl.erl index 946e9c5..0f9e77e 100644 --- a/src/mysqlerl.erl +++ b/src/mysqlerl.erl @@ -8,8 +8,6 @@ -export([convert_type/1]). --export([test_start/0, test_msg/0, test_query/0, test_param_query/0]). - -export([start/0, start/1, stop/0, commit/2, commit/3, connect/6, disconnect/1, describe_table/2, describe_table/3, first/1, first/2, @@ -18,27 +16,6 @@ select/3, select/4, param_query/3, param_query/4, sql_query/2, sql_query/3]). --define(CONFIG, "/Users/bjc/tmp/test-server.cfg"). - -test_start() -> - {ok, [{Host, Port, DB, User, Pass, Options}]} = file:consult(?CONFIG), - mysqlerl:connect(Host, Port, DB, User, Pass, Options). - -test_msg() -> - commit(mysqlerl_connection_sup:random_child(), - rollback, 2000). - -test_query() -> - sql_query(mysqlerl_connection_sup:random_child(), - "SELECT COUNT(*) FROM user", 2000). - -test_param_query() -> - %% This should really be an update or something, since that's how - %% it'll be used. - param_query(mysqlerl_connection_sup:random_child(), - "SELECT * FROM user WHERE username=?", - [{{sql_varchar, 20}, "bjc"}]). - start() -> start(temporary). -- cgit v1.2.3