lang

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package lang provides language runtime commands (go, dotnet).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Counters added in v0.28.0

type Counters struct {
	Total               int `xml:"total,attr"`
	Executed            int `xml:"executed,attr"`
	Passed              int `xml:"passed,attr"`
	Failed              int `xml:"failed,attr"`
	Error               int `xml:"error,attr"`
	Timeout             int `xml:"timeout,attr"`
	Aborted             int `xml:"aborted,attr"`
	Inconclusive        int `xml:"inconclusive,attr"`
	PassedButRunAborted int `xml:"passedButRunAborted,attr"`
	NotRunnable         int `xml:"notRunnable,attr"`
	NotExecuted         int `xml:"notExecuted,attr"`
	Disconnected        int `xml:"disconnected,attr"`
	Warning             int `xml:"warning,attr"`
	Completed           int `xml:"completed,attr"`
	InProgress          int `xml:"inProgress,attr"`
	Pending             int `xml:"pending,attr"`
}

type ErrorInfo added in v0.28.0

type ErrorInfo struct {
	Message    string `xml:"Message"`
	StackTrace string `xml:"StackTrace"`
}

type Execution added in v0.28.0

type Execution struct {
	Id string `xml:"id,attr"`
}

type GoTestEvent

type GoTestEvent struct {
	Time    string  `json:"Time"`
	Action  string  `json:"Action"`
	Package string  `json:"Package"`
	Test    string  `json:"Test"`
	Elapsed float64 `json:"Elapsed"`
	Output  string  `json:"Output"`
}

type Output added in v0.28.0

type Output struct {
	StdOut    string     `xml:"StdOut"`
	StdErr    string     `xml:"StdErr"`
	ErrorInfo *ErrorInfo `xml:"ErrorInfo"`
}

type RSpecExample

type RSpecExample struct {
	ID              string          `json:"id"`
	Description     string          `json:"description"`
	FullDescription string          `json:"full_description"`
	Status          string          `json:"status"`
	FilePath        string          `json:"file_path"`
	LineNumber      int             `json:"line_number"`
	Exception       *RSpecException `json:"exception,omitempty"`
}

type RSpecException

type RSpecException struct {
	Class     string   `json:"class"`
	Message   string   `json:"message"`
	Backtrace []string `json:"backtrace"`
}

type RSpecJSON

type RSpecJSON struct {
	Version  string         `json:"version"`
	Examples []RSpecExample `json:"examples"`
	Summary  RSpecSummary   `json:"summary"`
}

RSpecJSON represents the JSON output from rspec --format json

type RSpecSummary

type RSpecSummary struct {
	Duration     float64 `json:"duration"`
	ExampleCount int     `json:"example_count"`
	FailureCount int     `json:"failure_count"`
	PendingCount int     `json:"pending_count"`
}

type ResultSum added in v0.28.0

type ResultSum struct {
	Outcome  string    `xml:"outcome,attr"`
	Counters Counters  `xml:"Counters"`
	RunInfo  []RunInfo `xml:"RunInfos>RunInfo"`
}

type Results added in v0.28.0

type Results struct {
	UnitTestResults []UnitTestResult `xml:"UnitTestResult"`
}

type RuboCopFile

type RuboCopFile struct {
	Path     string           `json:"path"`
	Offenses []RuboCopOffense `json:"offenses"`
}

type RuboCopJSON

type RuboCopJSON struct {
	Metadata RuboCopMetadata `json:"metadata"`
	Files    []RuboCopFile   `json:"files"`
	Summary  RuboCopSummary  `json:"summary"`
}

RuboCopJSON represents the JSON output from rubocop --format json

type RuboCopLocation

type RuboCopLocation struct {
	StartLine int `json:"start_line"`
}

type RuboCopMetadata

type RuboCopMetadata struct {
	RuboCopVersion string `json:"rubocop_version"`
}

type RuboCopOffense

type RuboCopOffense struct {
	Severity string          `json:"severity"`
	Message  string          `json:"message"`
	CopName  string          `json:"cop_name"`
	Location RuboCopLocation `json:"location"`
}

type RuboCopSummary

type RuboCopSummary struct {
	OffenseCount       int `json:"offense_count"`
	TargetFileCount    int `json:"target_file_count"`
	InspectedFileCount int `json:"inspected_file_count"`
}

type RunInfo added in v0.28.0

type RunInfo struct {
	ComputerName string `xml:"computerName,attr"`
	Outcome      string `xml:"outcome,attr"`
	Timestamp    string `xml:"timestamp,attr"`
	Text         string `xml:"Text"`
}

type TestDefs added in v0.28.0

type TestDefs struct {
	UnitTests []UnitTest `xml:"UnitTest"`
}

type TestMethod added in v0.28.0

type TestMethod struct {
	ClassName string `xml:"className,attr"`
	Name      string `xml:"name,attr"`
}

type TestRun added in v0.28.0

type TestRun struct {
	XMLName   xml.Name  `xml:"TestRun"`
	Id        string    `xml:"id,attr"`
	Name      string    `xml:"name,attr"`
	RunUser   string    `xml:"runUser,attr"`
	Times     Times     `xml:"Times"`
	Results   Results   `xml:"Results"`
	TestDefs  TestDefs  `xml:"TestDefinitions"`
	ResultSum ResultSum `xml:"ResultSummary"`
}

TRX XML structures

type Times added in v0.28.0

type Times struct {
	Creation string `xml:"creation,attr"`
	Queuing  string `xml:"queuing,attr"`
	Start    string `xml:"start,attr"`
	Finish   string `xml:"finish,attr"`
}

type UnitTest added in v0.28.0

type UnitTest struct {
	Id         string     `xml:"id,attr"`
	Name       string     `xml:"name,attr"`
	Storage    string     `xml:"storage,attr"`
	Execution  Execution  `xml:"Execution"`
	TestMethod TestMethod `xml:"TestMethod"`
}

type UnitTestResult added in v0.28.0

type UnitTestResult struct {
	TestId       string  `xml:"testId,attr"`
	TestName     string  `xml:"testName,attr"`
	ComputerName string  `xml:"computerName,attr"`
	Duration     string  `xml:"duration,attr"`
	StartTime    string  `xml:"startTime,attr"`
	EndTime      string  `xml:"endTime,attr"`
	Outcome      string  `xml:"outcome,attr"`
	Output       *Output `xml:"Output"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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