Document GPU plugin test code test-case struct members

This commit is contained in:
Eero Tamminen 2021-05-05 16:25:14 +03:00
parent de96a4bbb7
commit c575ce9099

View File

@ -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
}{ }{