Skip to content
Browse files

Move eunit/eqc includes into stats.hrl so that not every module needs…

… to do it
  • Loading branch information...
1 parent 5ae17a3 commit 95eb93ef0adc0ea01d8879421a9268f0a18c312d @dizzyd dizzyd committed
Showing with 9 additions and 13 deletions.
  1. +1 −0 ebin/stats.app
  2. +7 −0 include/stats.hrl
  3. +0 −7 src/stats_histogram.erl
  4. +1 −6 src/stats_sample.erl
View
1 ebin/stats.app
@@ -3,6 +3,7 @@
{vsn, "1"},
{modules, [ stats_sample,
stats_histogram,
+ stats_rv,
stats_utils]},
{registered, []},
{applications, [kernel,
View
7 include/stats.hrl
@@ -1,2 +1,9 @@
-define(FMT(Str, Args), lists:flatten(io_lib:format(Str, Args))).
+
+-ifdef(TEST).
+-ifdef(EQC).
+-include_lib("eqc/include/eqc.hrl").
+-endif.
+-include_lib("eunit/include/eunit.hrl").
+-endif.
View
7 src/stats_histogram.erl
@@ -28,13 +28,6 @@
-include("stats.hrl").
--ifdef(TEST).
--ifdef(EQC).
--include_lib("eqc/include/eqc.hrl").
--endif.
--include_lib("eunit/include/eunit.hrl").
--endif.
-
-record(hist, { n = 0,
min,
max,
View
7 src/stats_sample.erl
@@ -28,12 +28,7 @@
variance/1, sdev/1,
summary/1]).
--ifdef(TEST).
--ifdef(EQC).
--include_lib("eqc/include/eqc.hrl").
--endif.
--include_lib("eunit/include/eunit.hrl").
--endif.
+-include("stats.hrl").
-record(state, { n = 0,
min = 'NaN',

0 comments on commit 95eb93e

Please sign in to comment.
Something went wrong with that request. Please try again.