distributor

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2026 License: Unlicense Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Distribution

type Distribution struct {
	Workers []WorkerBucket
}

func RoundRobin

func RoundRobin(tests []TestFile, workerCount int) Distribution

func (Distribution) GetWorkerTests

func (d Distribution) GetWorkerTests(workerID int) []TestFile

func (Distribution) TestCount

func (d Distribution) TestCount() int

func (Distribution) WorkerCount

func (d Distribution) WorkerCount() int

type TestFile

type TestFile struct {
	Path  string
	Suite string
}

type WorkerBucket

type WorkerBucket struct {
	WorkerID int
	Tests    []TestFile
}

Jump to

Keyboard shortcuts

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