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) {
|
func TestScan(t *testing.T) {
|
||||||
tcases := []struct {
|
tcases := []struct {
|
||||||
name string
|
name string
|
||||||
devfsdirs []string
|
// test-case environment
|
||||||
sysfsdirs []string
|
devfsdirs []string
|
||||||
sysfsfiles map[string][]byte
|
sysfsdirs []string
|
||||||
options cliOptions
|
sysfsfiles map[string][]byte
|
||||||
|
// how plugin should interpret it
|
||||||
|
options cliOptions
|
||||||
|
// what the result should be
|
||||||
expectedDevs int
|
expectedDevs int
|
||||||
expectedMonitors int
|
expectedMonitors int
|
||||||
}{
|
}{
|
||||||
|
Loading…
Reference in New Issue
Block a user