q/tests
..
2025-02-17 14:31:47 +01:00
2025-02-19 23:46:17 +01:00
2025-02-17 14:31:47 +01:00
2025-02-17 23:36:11 +01:00
2025-02-19 23:46:17 +01:00
2025-02-20 23:54:13 +01:00

Tests

Basic test run:

go test ./... -v

Prettier output using gotestsum:

go run gotest.tools/gotestsum@latest

Coverage

Generate the coverage profile:

go test -coverpkg=./... -coverprofile=cover.out ./...

View the data with the integrated tools:

go tool cover -func cover.out
go tool cover -html cover.out

Benchmarks

Run all benchmarks:

go test ./tests -run='^$' -bench=. -benchmem

Examples only:

go test ./tests -run='^$' -bench=Examples/ -benchmem