feat: mock API server for testing server SDKs (#4627)

* feat: mock API server for testing server SDKs

* fixed lint
This commit is contained in:
David Zhao
2026-06-28 09:28:18 +02:00
committed by GitHub
parent a81f06b960
commit bfb75d1fc3
6 changed files with 657 additions and 0 deletions
+5
View File
@@ -177,6 +177,11 @@ func TestAll() error {
return mageutil.Run(context.Background(), "go test ./... -count=1 -timeout=4m -v")
}
// runs the SDK test server (cmd/test-server) in the foreground
func TestServer() error {
return mageutil.Run(context.Background(), "go run ./cmd/test-server")
}
// runs golangci-lint
func Lint() error {
if _, err := exec.LookPath("golangci-lint"); err != nil {