coveragerules

package
v0.0.0-...-f4b31ea Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2025 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Overview

Copyright 2023 The Chromium Authors Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateCoverageRuleBqRowSchema

func GenerateCoverageRuleBqRowSchema() (bigquery.Schema, error)

GenerateCoverageRuleBqRowSchema generates a BigQuery schema for the CoverageRuleBqRow proto.

func ReadGenerated

func ReadGenerated(ctx context.Context, dir string) ([]*testpb.CoverageRuleBqRow, error)

ReadGenerated finds all files under dir, and parses the contents of each into a CoverageRuleBqRow. Every file in dir is assumed to be a JSON list of CoverageRule jsonprotos (note that there is no proto message representing a list of CoverageRules, i.e. the generated files should not actually be valid jsonproto, but they should be a JSON list of valid jsonproto). If any file in dir isn't a list of CoverageRules, an error is returned.

dir must be in a git repo. This function will determine the host and project of the repo and the repo-relative path of each file.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL