mirror of
https://github.com/intel/intel-device-plugins-for-kubernetes.git
synced 2025-06-03 03:59:37 +00:00
Document GPU plugin test code test-case struct members
This commit is contained in:
parent
de96a4bbb7
commit
c575ce9099
@ -68,11 +68,14 @@ func createTestFiles(root string, devfsdirs, sysfsdirs []string, sysfsfiles map[
|
||||
|
||||
func TestScan(t *testing.T) {
|
||||
tcases := []struct {
|
||||
name string
|
||||
devfsdirs []string
|
||||
sysfsdirs []string
|
||||
sysfsfiles map[string][]byte
|
||||
options cliOptions
|
||||
name string
|
||||
// test-case environment
|
||||
devfsdirs []string
|
||||
sysfsdirs []string
|
||||
sysfsfiles map[string][]byte
|
||||
// how plugin should interpret it
|
||||
options cliOptions
|
||||
// what the result should be
|
||||
expectedDevs int
|
||||
expectedMonitors int
|
||||
}{
|
||||
|
Loading…
Reference in New Issue
Block a user