Просмотр исходного кода

Remove conditional export_all

These export_all declarations weren't getting used -- that is, we
weren't testing unexported functions. So removing.
Seth Falcon 9 лет назад
Родитель
Сommit
54a60643d6
3 измененных файлов с 1 добавлено и 11 удалено
  1. 0 5
      src/pooler.erl
  2. 0 5
      src/pooler_starter.erl
  3. 1 1
      test/fake_metrics.erl

+ 0 - 5
src/pooler.erl

@@ -58,11 +58,6 @@
          terminate/2,
          code_change/3]).
 
-%% To help with testing internal functions
--ifdef(TEST).
--compile([export_all]).
--endif.
-
 %% ------------------------------------------------------------------
 %% Application API
 %% ------------------------------------------------------------------

+ 0 - 5
src/pooler_starter.erl

@@ -28,11 +28,6 @@
          terminate/2,
          code_change/3]).
 
-%% To help with testing internal functions
--ifdef(TEST).
--compile([export_all]).
--endif.
-
 %% ------------------------------------------------------------------
 %% API Function Definitions
 %% ------------------------------------------------------------------

+ 1 - 1
test/fake_metrics.erl

@@ -48,7 +48,7 @@ get_metrics() ->
 %% gen_server Function Definitions
 %% ------------------------------------------------------------------
 -record(state, {
-          metrics = []
+          metrics = [] :: list()
          }).
 
 init(_) ->