metadata

package
v0.0.0-...-f91fb48 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2025 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeCommand

func MakeCommand() *cobra.Command

MakeCommand returns a `junit` command.

func ValidateAbs

func ValidateAbs(Flags *Flags, r gitRunner) error

func ValidateBase

func ValidateBase(Flags *Flags, cmd *cobra.Command, env envFetcher) error

func ValidateInc

func ValidateInc(Flags *Flags) error

func WriteJson

func WriteJson(Flags *Flags, m Metadata) error

Types

type AbsMetadata

type AbsMetadata struct {
	CoverageMetadata
	CommitID    string `json:"commit_id"`
	Ref         string `json:"ref"`
	Source      string `json:"source"`
	ReplaceRoot string `json:"git_project"`
}

type CoverageMetadata

type CoverageMetadata struct {
	Host      string `json:"host"`
	Project   string `json:"project"`
	Root      string `json:"workspace_root"`
	TraceType string `json:"trace_type"`
}

type Flags

type Flags struct {
	// contains filtered or unexported fields
}

type IncMetadata

type IncMetadata struct {
	CoverageMetadata
	ChangeNum string `json:"changelist_num"`
	PatchSet  string `json:"patchset_num"`
}

type Metadata

type Metadata interface{}

Jump to

Keyboard shortcuts

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