Skip to content

Commit

Permalink
Escape analysis (#1245)
Browse files Browse the repository at this point in the history
* Escape analysis report

* removing test and mock files
  • Loading branch information
nassor authored Oct 19, 2023
1 parent 7cd6af0 commit 0b3dd54
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,6 @@ dist/

# Conduit local config
/conduit.yaml

# Escape Analysis Report
escape_analysis.txt
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ build: check-go-version pkg/web/ui/dist build-pipeline-check
test:
go test $(GOTEST_FLAGS) -race ./...

.PHONY: escape-analysis
escape-analysis:
go test -gcflags "-m -m" $(GOTEST_FLAGS) ./... 2> escape_analysis_full.txt
grep -vwE "(.*_test\.go|.*\/mock/.*\.go)" escape_analysis_full.txt > escape_analysis.txt
rm escape_analysis_full.txt

test-integration:
# run required docker containers, execute integration tests, stop containers after tests
docker compose -f test/docker-compose-postgres.yml -f test/docker-compose-schemaregistry.yml up --quiet-pull -d --wait
Expand Down

0 comments on commit 0b3dd54

Please sign in to comment.