runnerpooltest

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package runnerpooltest provides an implementation of runnerpool.Pool to be used from tests of third party libraries where we just need to provide a dependency that will execute the code synchronously. For fine-grained control of the Pool, use the package runnerpoolmock

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SyncWorkersPool

type SyncWorkersPool struct{}

SyncWorkerPool provides workers that run the provided function synchronously. This is used to test third party libraries depending on runnerpool.Pool

func (SyncWorkersPool) Stats

func (s SyncWorkersPool) Stats() runnerpool.Stats

Stats does not provide correct stats for this test implementation

func (SyncWorkersPool) Worker

Worker always provides a worker with no calls limit

Jump to

Keyboard shortcuts

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