File tree Expand file tree Collapse file tree 7 files changed +48
-32
lines changed
Expand file tree Collapse file tree 7 files changed +48
-32
lines changed Original file line number Diff line number Diff line change 1+ {
2+ "image" : " mcr.microsoft.com/devcontainers/go:1-1.23-bookworm" ,
3+ "customizations" : {
4+ "vscode" : {
5+ "extensions" : [
6+ " golang.go" ,
7+ " eamodio.gitlens" ,
8+ " ms-vscode.makefile-tools"
9+ ]
10+ }
11+ }
12+ }
Original file line number Diff line number Diff line change 3535 run : go build -v ./...
3636
3737 - name : Test
38- run : go test -race -coverprofile=cover.out ./...
38+ run : make ut-coverage
3939
4040 - name : Post Coverage
4141 uses : codecov/codecov-action@v2
Original file line number Diff line number Diff line change 1- .PHONY : bench
2- bench :
3- @go test -bench=. -benchmem ./...
4-
5- .PHONY : ut
6- ut :
7- @go test -tags=goexperiment.arenas -race ./...
8-
9- .PHONY : setup
10- setup :
11- @sh ./.script/setup.sh
12-
13- .PHONY : fmt
14- fmt :
15- @sh ./.script/goimports.sh
16-
17- .PHONY : lint
18- lint :
19- @golangci-lint run -c .golangci.yml
20-
21- .PHONY : tidy
22- tidy :
23- @go mod tidy -v
24-
25- .PHONY : check
26- check :
27- @$(MAKE ) fmt
1+ .PHONY : bench
2+ bench :
3+ @go test -bench=. -benchmem ./...
4+
5+ .PHONY : ut
6+ ut :
7+ @go test -tags=goexperiment.arenas -race ./...
8+
9+ .PHONY : ut-coverage
10+ ut-coverage :
11+ @go test -tags=goexperiment.arenas -race -coverprofile=cover.out ./...
12+
13+ .PHONY : setup
14+ setup :
15+ @sh ./.script/setup.sh
16+
17+ .PHONY : fmt
18+ fmt :
19+ @sh ./.script/goimports.sh
20+
21+ .PHONY : lint
22+ lint :
23+ @golangci-lint run -c .golangci.yml
24+
25+ .PHONY : tidy
26+ tidy :
27+ @go mod tidy -v
28+
29+ .PHONY : check
30+ check :
31+ @$(MAKE ) fmt
2832 @$(MAKE ) tidy
Original file line number Diff line number Diff line change 1414package main
1515
1616// 测试用
17- //go:generate go build -race -- buildmode=plugin -o a.so ./a.go
17+ //go:generate go build -race -tags=goexperiment.arenas -- buildmode=plugin -o a.so ./a.go
1818
1919type UserService struct {}
2020
Original file line number Diff line number Diff line change 1212// See the License for the specific language governing permissions and
1313// limitations under the License.
1414
15- //go:generate go build -race -- buildmode=plugin -o ../a.so ./a.go
15+ //go:generate go build -race -tags=goexperiment.arenas -- buildmode=plugin -o ../a.so ./a.go
1616
1717package main
1818
Original file line number Diff line number Diff line change 1212// See the License for the specific language governing permissions and
1313// limitations under the License.
1414
15- //go:generate go build -race -- buildmode=plugin -o ../b.so ./b.go
15+ //go:generate go build -race -tags=goexperiment.arenas -- buildmode=plugin -o ../b.so ./b.go
1616package main
1717
1818// 测试用
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ package main
1616
1717// 测试用
1818
19- //go:generate go build -race -- buildmode=plugin -o a.so ./a.go
19+ //go:generate go build -race -tags=goexperiment.arenas -- buildmode=plugin -o a.so ./a.go
2020
2121type UserService struct {}
2222
You can’t perform that action at this time.
0 commit comments