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