For up to date usage docs please refer to Evervault docs and godocs
Currently, a significant number of the tests rely on credentials or resource identifiers that are not included in this repo.
The list of required env vars is:
EV_APP_UUID- a valid Evervault app uuidEV_API_KEY- an Evervault API Key withfunction:invokeand relay authenticateEV_ENCLAVE_API_KEY- an Evervault Enclave API Key withenclave:invokeEV_SYNTHETIC_ENDPOINT_URL- an existing Relay destination for the given appEV_INITIALIZATION_ERROR_FUNCTION_NAME- the name of a function which will fail when invokedEV_FUNCTION_NAME- the name of a function which will run when invokedGOEXPERIMENT=synctest- enable synctest experiment on Go 1.24
To run all tests in the sdk:
go test -v -count=1 -race ./...To run unit tests only:
go test -v -count=1 --short -race ./...Linting is run on all PR with golangci-lint.
To test locally you can run
golangci-lint run ./...