tree: 77890f49ac747814f938fd032fd1d1a924fe026a [path history] [tgz]
  1. config/
  2. coverageclient/
  3. coverageserver/
  4. coveragestore/
  5. demo/
  6. proto/
  7. service/
  8. BUILD.bazel
  9. coverage.go
  10. coverage_test.go
  11. Makefile
  12. README.md
  13. service.go
go/coverage/README.md

This directory contains the coverage service implementation and it's respective controllers.

The service has 4 endpoints.

  1. GetTestSuite
  2. InsertFile
  3. DeleteFile
  4. UpdateFile

Run CockroachDB

cd /tmp && cockroach start-single-node --insecure --listen-addr=127.0.0.1

Running the coverage service locally

To run a local instance of the coverage service, simply run the cmd below from the coverage directory. make run-coverage

How to use the endpoints

grpc_cli call 127.0.0.1:8006 --channel_creds_type=local coverage.v1.CoverageService.<RPC> --infile demo/<ACTION>.json

  1. GetTestSuite
    • This method returns available test suites based on Source file and Builder.
  2. InsertFile
    • Used when a new file and builder will be added to database.
  3. DeleteFile
    • Remove existing file and builder pair.
  4. UpdateFile
    • Add test suite to existing file and builder pair.