aboutsummaryrefslogtreecommitdiffstats
path: root/src/cow_http_te.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2015-03-12 16:13:40 +0100
committerLoïc Hoguin <[email protected]>2015-03-12 16:13:40 +0100
commit6f9b4bbc415db026f080b10a3d3d4400801882b1 (patch)
tree760275a03de406a1b05c60282dd562f53adcb594 /src/cow_http_te.erl
parenta8db5d9f7a21f36d4582dd083001757513e5990e (diff)
downloadcowlib-6f9b4bbc415db026f080b10a3d3d4400801882b1.tar.gz
cowlib-6f9b4bbc415db026f080b10a3d3d4400801882b1.tar.bz2
cowlib-6f9b4bbc415db026f080b10a3d3d4400801882b1.zip
Maintenance
* Update copyright years. * Update erlang.mk. * Fix triq testing.
Diffstat (limited to 'src/cow_http_te.erl')
-rw-r--r--src/cow_http_te.erl7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/cow_http_te.erl b/src/cow_http_te.erl
index 5ab71f4..1e7b43f 100644
--- a/src/cow_http_te.erl
+++ b/src/cow_http_te.erl
@@ -34,7 +34,7 @@
| {done, Data::binary(), TotalLen::non_neg_integer(), Rest::binary()}.
-export_type([decode_ret/0]).
--ifdef(EXTRA).
+-ifdef(TEST).
dripfeed(<< C, Rest/bits >>, Acc, State, F) ->
case F(<< Acc/binary, C >>, State) of
more ->
@@ -92,11 +92,8 @@ stream_identity_parts_test() ->
{done, << 0:7992 >>, 2999, <<>>}
= stream_identity(<< 0:7992 >>, S2),
ok.
--endif.
--ifdef(PERF).
%% Using the same data as the chunked one for comparison.
-
horse_stream_identity() ->
horse:repeat(10000,
stream_identity(<<
@@ -296,9 +293,7 @@ stream_chunked_error_test_() ->
[{lists:flatten(io_lib:format("value ~p state ~p", [V, S])),
fun() -> {'EXIT', _} = (catch stream_chunked(V, S)) end}
|| {V, S} <- Tests].
--endif.
--ifdef(PERF).
horse_stream_chunked() ->
horse:repeat(10000,
stream_chunked(<<