testutil

package
v0.0.0-...-c86d1e0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package testutil holds different utilities and stubs for testing

Index

Constants

View Source
const DefaultGpuCores = 10

DefaultGpuCores is the default number of cores for a GPU device in the mock.

Variables

This section is empty.

Functions

func GetBasicNvmlMock

func GetBasicNvmlMock() *nvmlmock.Interface

GetBasicNvmlMock returns a mock of the nvml.Interface with a single device with 10 cores, useful for basic tests that need only the basic interaction with NVML to be working.

Types

This section is empty.

Jump to

Keyboard shortcuts

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