Skip to content

Commit 532907f

Browse files
authored
Merge pull request #63 from elezar/add-nvpic-mock
Add mock for nvpci.Interface
2 parents 7685110 + 338a7e7 commit 532907f

2 files changed

Lines changed: 416 additions & 0 deletions

File tree

pkg/nvpci/nvpci.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ const (
4646
)
4747

4848
// Interface allows us to get a list of all NVIDIA PCI devices.
49+
//
50+
//go:generate moq -rm -fmt=goimports -out nvpci_mock.go . Interface
4951
type Interface interface {
5052
GetAllDevices() ([]*NvidiaPCIDevice, error)
5153
Get3DControllers() ([]*NvidiaPCIDevice, error)

0 commit comments

Comments
 (0)