-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from metal3d/develop
Enhancements and refactorization
- Loading branch information
Showing
8 changed files
with
772 additions
and
180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,10 @@ [email protected] | |
|
||
TARGETS=dist/goreorder-linux-amd64 dist/goreorder-darwin-amd64 dist/goreorder-windows-amd64.exe dist/goreorder-freebsd-amd64 | ||
|
||
# TEST selection | ||
# e.g. TEST="TestFoo TestBar" | ||
TEST= | ||
|
||
install: | ||
go install -v $(CC_OPTS) $(PACKAGE) | ||
|
||
|
@@ -80,8 +84,12 @@ clean-dist: | |
clean: clean-dist | ||
rm -f ./goreorder | ||
|
||
test: | ||
test: | ||
ifeq ($(strip $(TEST)),) | ||
go test -v -race -cover -short ./... | ||
else | ||
go test -v -race -run $(TEST) ./... | ||
endif | ||
|
||
test-cover-html: | ||
go test -cover -coverprofile=coverage.out ./... | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.