feat(tests): add new fuzz, resource leak, and network simulation tests; introduce benchmark and build-test workflows
All checks were successful
Go Build Test / Build (linux, arm) (pull_request) Successful in 41s
Go Build Test / Build (windows, amd64) (pull_request) Successful in 43s
Go Build Test / Build (freebsd, amd64) (pull_request) Successful in 45s
Go Benchmarks / Run Benchmarks (pull_request) Successful in 54s
Go Build Test / Build (js, wasm) (pull_request) Successful in 44s
Go Build Test / Build (linux, arm64) (pull_request) Successful in 48s
Go Build Test / Build (windows, arm64) (pull_request) Successful in 46s
Go Test Multi-Platform / Test (ubuntu-latest, arm64) (pull_request) Successful in 1m12s
Go Revive Lint / lint (pull_request) Successful in 1m8s
Run Gosec / tests (pull_request) Successful in 1m21s
Go Test Multi-Platform / Test (ubuntu-latest, amd64) (pull_request) Successful in 2m16s
Go Build Test / Build (darwin, amd64) (pull_request) Successful in 9m23s
Go Build Test / Build (freebsd, arm) (pull_request) Successful in 9m23s
Go Build Test / Build (linux, amd64) (pull_request) Successful in 9m26s
Go Build Test / Build (windows, arm) (pull_request) Successful in 9m26s
Go Build Test / Build (darwin, arm64) (pull_request) Successful in 9m24s
Go Build Test / Build (freebsd, arm64) (pull_request) Successful in 9m25s
Bearer / scan (pull_request) Successful in 10s

This commit is contained in:
2026-01-02 16:39:19 -06:00
parent 6b011144cf
commit 6fe193d75a
6 changed files with 208 additions and 138 deletions

View File

@@ -141,6 +141,21 @@ tasks:
cmds:
- '{{.GOCMD}} test -race -v ./...'
test-fuzz:
desc: Run fuzz tests for a short duration
cmds:
- '{{.GOCMD}} test -fuzz=FuzzPacketUnpack -fuzztime=30s ./pkg/packet'
test-leaks:
desc: Run resource leak tests
cmds:
- '{{.GOCMD}} test -v ./pkg/transport -run TestTransportLeak'
test-network:
desc: Run network simulation tests
cmds:
- '{{.GOCMD}} test -v ./pkg/transport -run TestTransportNetworkSimulation'
coverage:
desc: Generate test coverage report
cmds: