summaryrefslogtreecommitdiff
path: root/test/src/db.erl
blob: a2ca16e8eed6e81310ae12e68a6580abffce9638 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
%%% Copyright (c) 2014, NORDUnet A/S.
%%% See LICENSE for licensing information.

-module(db).
-export([get_by_indices/3, size/0]).

size() ->
    0.

get_by_indices(Start, _End, _Options) when Start < 0 ->
    [];
get_by_indices(Start, End, _Options) ->
    case Start =< End of
        true ->
            B = crypto:hash(sha256, <<"bar">>),
            lists:map(fun (Index) ->
                              {Index, B, notfetched}
                      end, lists:seq(Start, End));
        false ->
            []
    end.