first commit

This commit is contained in:
JiXieShi
2024-11-14 22:55:43 +08:00
commit 421cfb8cfa
98 changed files with 12617 additions and 0 deletions

14
scripts/test.sh Normal file
View File

@@ -0,0 +1,14 @@
#!/bin/bash
# 运行所有测试
go test -v ./...
# 运行指定包的测试
# go test -v ./internal/service/...
# 运行指定测试
# go test -v ./internal/service -run TestLicenseService
# 生成测试覆盖率报告
go test -coverprofile=coverage.out ./...
go tool cover -html=coverage.out -o coverage.html