Skip to content

Commit

Permalink
add coverage support, new test to improve coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
mmullis committed Aug 27, 2009
1 parent 3d455e2 commit 459c453
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion test/Makefile
Expand Up @@ -8,9 +8,11 @@ INCLUDE=../include
ERL_COMPILE_FLAGS += -I$(INCLUDE) +warn_unused_vars +nowarn_shadow_vars +warn_unused_import

SOURCES= \
eunit_helper.erl \
macaddr_tests.erl \
macaddr_basic_test.erl


OBJECTS=$(SOURCES:%.erl=$(EBIN)/%.$(EMULATOR))

all: $(OBJECTS)
Expand All @@ -20,4 +22,3 @@ clean:

$(EBIN)/%.$(EMULATOR):%.erl
erlc -pa $(EBIN) -W $(ERL_COMPILE_FLAGS) -o$(EBIN) $<

3 changes: 2 additions & 1 deletion test/macaddr_basic_test.erl
Expand Up @@ -12,7 +12,8 @@
basic_test_() ->
[?_assert(length(macaddr:address()) > 0),
?_assert(length(macaddr:address_list()) > 0),
?_assert(length(macaddr:address()) /= "00-00-00-00-00-00")
?_assert(length(macaddr:address()) /= "00-00-00-00-00-00"),
?_assertException(throw, {error, {no_mac_address_candidate,_}}, macaddr:address("notreal"))
].

matching_test_() ->
Expand Down

0 comments on commit 459c453

Please sign in to comment.