Skip to content

Commit 0ce3cdd

Browse files
author
Ulf Wiger
committed
rebar:ified, meck:ed time in unit tests
0 parents  commit 0ce3cdd

14 files changed

+2695
-0
lines changed

.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
deps/
2+
ebin/
3+
.eunit/
4+
*~
5+
*/*~

LICENSE

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
Copyright (c) 2009-2010 Erlang Solutions
2+
All rights reserved.
3+
4+
Redistribution and use in source and binary forms, with or without
5+
modification, are permitted provided that the following conditions are met:
6+
* Redistributions of source code must retain the above copyright
7+
notice, this list of conditions and the following disclaimer.
8+
* Redistributions in binary form must reproduce the above copyright
9+
notice, this list of conditions and the following disclaimer in the
10+
documentation and/or other materials provided with the distribution.
11+
* Neither the name of the Erlang Solutions nor the names of its
12+
contributors may be used to endorse or promote products
13+
derived from this software without specific prior written permission.
14+
15+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
16+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18+
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS
19+
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
20+
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
21+
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
22+
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
23+
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
24+
OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
25+
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Makefile

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
.PHONY: all compile clean eunit test doc dialyzer
2+
3+
all: compile eunit test doc
4+
5+
compile:
6+
rebar compile
7+
8+
clean:
9+
rebar clean
10+
11+
eunit:
12+
rebar eunit
13+
14+
test: eunit
15+
16+
doc:
17+
rebar doc
18+
19+
dialyzer: compile
20+
rebar skip_deps=true dialyze
21+

rebar.config

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
%% -*- erlang -*-
2+
{erl_opts, [debug_info]}.
3+
{deps, [
4+
{meck, ".*", {git, "git://github.com/esl/meck.git", "HEAD"}}
5+
]}.
6+
{dialyzer_opts, [{warnings, [no_unused,
7+
no_improper_lists, no_fun_app, no_match,
8+
no_opaque, no_fail_call,
9+
error_handling, no_match,
10+
unmatched_returns,
11+
behaviours, underspecs]}]}.

0 commit comments

Comments
 (0)