[hw-2] add tests, coverage, benchmarks

This commit is contained in:
Никита Шубин
2025-05-31 10:47:47 +00:00
parent 1a3d4892a8
commit a0e36639ca
22 changed files with 3058 additions and 48 deletions

View File

@@ -1,8 +1,14 @@
BINDIR=${CURDIR}/bin
PACKAGE=route256/cart
PKGS = $(shell go list ./... | grep -vE 'mock|config|generated|header|document|internal/pb')
bindir:
mkdir -p ${BINDIR}
build: bindir
echo "build cart"
coverage:
@go test -race -coverprofile=coverage.txt -covermode=atomic $(PKGS)
@go tool cover -html=coverage.txt -o coverage.html