Tilo is short for “Test Invocation LOgger”. It is a library for publishing build and test results to the Cloud Source build and test results UI. (example)
Tilo gRPC code is tested using mocks generated from Google APIs. If those APIs change, the mocks need to be regenerated. To do this:
First, install gomock:
go get github.com/golang/mock/gomock go install github.com/golang/mock/mockgen
Run gomock to generate gRPC mocks of the ResultStore API's ResultStoreUploadClient
interface:
PKG=google.golang.org/genproto/googleapis/devtools/resultstore/v2 OUT=tilo/resultstore/mocks/mocks.go mockgen $PKG ResultStoreUploadClient > $OUT