testsplit

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package testsplit runs the share of a package's tests that a CI shard was given. scripts/testshard deals the tests of the slowest packages to several shards and tells each, in REPUTECAST_TEST_RUN, which of a split package's tests it runs: "import/path run regexp" or "import/path skip regexp" lines. A package CI splits calls Main from its TestMain; without a line for it, it runs all its tests.

Index

Constants

View Source
const Env = "REPUTECAST_TEST_RUN"

Env holds the shares.

Variables

This section is empty.

Functions

func Main

func Main(m *testing.M, pkg string)

Main runs the tests of the package at import path pkg that its line in Env selects, or all of them.

Types

This section is empty.

Jump to

Keyboard shortcuts

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