-
Notifications
You must be signed in to change notification settings - Fork 3
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 #7 from snorwin/object-interfaces-as-function
Object interfaces as function and with helpers
- Loading branch information
Showing
14 changed files
with
411 additions
and
82 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
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Run go fmt against code | ||
fmt: | ||
go fmt ./... | ||
gofmt -s -w . | ||
|
||
# Run go vet against code | ||
vet: | ||
go vet ./... | ||
|
||
# Run golangci-lint | ||
lint: | ||
golangci-lint run | ||
|
||
# Run go mod tidy | ||
tidy: | ||
go mod tidy | ||
|
||
# Run tests | ||
test: mocks tidy fmt vet | ||
go test ./... -coverprofile cover.out -timeout 30m | ||
|
||
mocks: mockgen | ||
mockgen -destination pkg/mocks/manager/mock.go sigs.k8s.io/controller-runtime/pkg/manager Manager | ||
|
||
mockgen: | ||
ifeq (, $(shell which mockgen)) | ||
$(shell go get github.com/golang/mock/mockgen@v1.6.0) | ||
endif |
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.