-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Tronje Krop <[email protected]>
- Loading branch information
Tronje Krop
committed
Aug 28, 2024
1 parent
1541b19
commit d225800
Showing
14 changed files
with
47 additions
and
166 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 |
---|---|---|
|
@@ -5,4 +5,6 @@ engines: | |
- "**/*_test.go" | ||
revive: | ||
exclude_paths: | ||
- "**/zz_generated.*.go" | ||
- "**/mock_*_test.go" | ||
- "**/mock_*.go" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,28 @@ | ||
SHELL := /bin/bash | ||
|
||
# Include custom variables to modify behavior. | ||
ifneq ("$(wildcard Makefile.vars)","") | ||
GITROOT ?= $(shell git rev-parse --show-toplevel 2>/dev/null || echo $(CURDIR)) | ||
ifneq ("$(wildcard $(GITROOT)/Makefile.vars)","") | ||
include Makefile.vars | ||
else | ||
$(warning warning: please customize variables in Makefile.vars) | ||
endif | ||
|
||
# Setup default go compiler environment. | ||
export GO ?= go | ||
export GOPATH ?= $(shell $(GO) env GOPATH) | ||
export GOBIN ?= $(GOPATH)/bin | ||
# Setup go-make to utilize desired build and config scripts. | ||
GOMAKE_DEP ?= github.com/tkrop/[email protected] | ||
|
||
# Setup go-make version to use desired build and config scripts. | ||
GOMAKE_DEP ?= github.com/tkrop/[email protected] | ||
INSTALL_FLAGS ?= -mod=readonly -buildvcs=auto | ||
# Request targets from go-make targets target. | ||
TARGETS := $(shell command -v $(GOBIN)/go-make >/dev/null || \ | ||
$(GO) install $(GOMAKE_DEP) >/dev/stderr && \ | ||
$(GO) install $(INSTALL_FLAGS) $(GOMAKE_DEP) >/dev/stderr && \ | ||
$(GOBIN)/go-make show-targets 2>/dev/null) | ||
# Declare all targets phony to make them available for auto-completion. | ||
.PHONY:: $(TARGETS) | ||
|
||
# Delegate all targets to go-make in a single call stubbing other targets. | ||
$(eval $(wordlist 1,$(words $(MAKECMDGOALS)),$(MAKECMDGOALS))::;@:) | ||
$(firstword $(MAKECMDGOALS) all):: | ||
# Delegate all targets to go-make in a single stubbing call. | ||
GOAL := $(firstword $(MAKECMDGOALS) all) | ||
$(eval $(MAKECMDGOALS)::;@:) | ||
$(GOAL):: $(GOBIN)/go-make | ||
@$(GOBIN)/go-make $(MAKECMDGOALS); |
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 |
---|---|---|
@@ -1 +1 @@ | ||
0.0.9 | ||
0.0.10 |
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 |
---|---|---|
@@ -1,23 +1,23 @@ | ||
module github.com/tkrop/go-testing | ||
|
||
go 1.22.2 | ||
go 1.23.0 | ||
|
||
require ( | ||
github.com/golang/mock v1.6.0 | ||
github.com/h2non/gock v1.2.0 | ||
github.com/huandu/go-clone v1.6.0 | ||
github.com/stretchr/testify v1.9.0 | ||
golang.org/x/exp v0.0.0-20240325151524-a685a6edb6d8 | ||
golang.org/x/text v0.13.0 | ||
golang.org/x/tools v0.19.0 | ||
golang.org/x/tools v0.24.0 | ||
) | ||
|
||
require ( | ||
github.com/davecgh/go-spew v1.1.1 // indirect | ||
github.com/h2non/parth v0.0.0-20190131123155-b4df798d6542 // indirect | ||
github.com/kr/pretty v0.3.1 // indirect | ||
github.com/pmezard/go-difflib v1.0.0 // indirect | ||
golang.org/x/mod v0.16.0 // indirect | ||
golang.org/x/mod v0.20.0 // indirect | ||
golang.org/x/sync v0.8.0 // indirect | ||
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect | ||
gopkg.in/yaml.v3 v3.0.1 // indirect | ||
) |
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
File renamed without changes.
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