diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..eda77f4 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.DS_Store +._* diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..5ad32a3 --- /dev/null +++ b/Makefile @@ -0,0 +1,9 @@ +COVERAGE_FILE=/tmp/abutils_coverage.out + +test: + go test -cover -v -race + +cover: + go test -coverprofile=$(COVERAGE_FILE) && \ + go tool cover -html=$(COVERAGE_FILE) && \ + rm $(COVERAGE_FILE)