mage

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Copyright (c) Microsoft Corporation. Licensed under the MIT License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CI

func CI() error

CI runs format, lint, doc, and test.

func CIVerify

func CIVerify() error

CIVerify runs CI and verifies no thrashing occurred.

func Doc

func Doc() error

Doc generates documents for the code.

func Format

func Format() error

Format formats the code.

func Lint

func Lint() error

Lint lints the code.

func Test

func Test() error

Test runs the unit tests.

func TestClean

func TestClean() error

TestClean runs the unit tests with no test cache.

func Verify

func Verify() error

Verify that no thrashing occurred.

Types

type Tester added in v0.3.0

type Tester struct {
	Clean, Race bool
	CoverPkg    []string
	Timeout     time.Duration
}

Tester generates the test commands from various parameters.

func (Tester) Run added in v0.3.0

func (t Tester) Run() error

Jump to

Keyboard shortcuts

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