| 1 | package devicescip-go gomod github.com/foxboron/go-uefi . `github.com/foxboron/go-uefi/efi/device`/ |
| 2 | |
| 3 | import ( |
| 4 | "logscip-go gomod github.com/golang/go/src go1.23 log/" |
| 5 | "osscip-go gomod github.com/golang/go/src go1.23 os/" |
| 6 | "path/filepathscip-go gomod github.com/golang/go/src go1.23 `path/filepath`/" |
| 7 | "testingscip-go gomod github.com/golang/go/src go1.23 testing/" |
| 8 | |
| 9 | "github.com/foxboron/go-uefi/efi/attributesscip-go gomod github.com/foxboron/go-uefi . `github.com/foxboron/go-uefi/efi/attributes`/" |
| 10 | ) |
| 11 | |
| 12 | func TestAbsscip-go gomod github.com/foxboron/go-uefi . `github.com/foxboron/go-uefi/efi/device`/TestAbs().(t *testingscip-go gomod github.com/golang/go/src go1.23 testing/.Tscip-go gomod github.com/golang/go/src go1.23 testing/T#) { |
| 13 | dir := "../../tests/data/boot" |
| 14 | attributesscip-go gomod github.com/foxboron/go-uefi . `github.com/foxboron/go-uefi/efi/attributes`/.Efivarsscip-go gomod github.com/foxboron/go-uefi . `github.com/foxboron/go-uefi/efi/attributes`/Efivars. = dir |
| 15 | files, err := osscip-go gomod github.com/golang/go/src go1.23 os/.ReadDirscip-go gomod github.com/golang/go/src go1.23 os/ReadDir().(dir) |
| 16 | if err != nil { |
| 17 | logscip-go gomod github.com/golang/go/src go1.23 log/.Fatalscip-go gomod github.com/golang/go/src go1.23 log/Fatal().(err) |
| 18 | } |
| 19 | for _, file := range files { |
| 20 | filepath := filepathscip-go gomod github.com/golang/go/src go1.23 `path/filepath`/.Joinscip-go gomod github.com/golang/go/src go1.23 `path/filepath`/Join().(dir, file.Namescip-go gomod github.com/golang/go/src go1.23 `io/fs`/DirEntry#Name().()) |
| 21 | _, f, err := attributesscip-go gomod github.com/foxboron/go-uefi . `github.com/foxboron/go-uefi/efi/attributes`/.ReadEfivarsFilescip-go gomod github.com/foxboron/go-uefi . `github.com/foxboron/go-uefi/efi/attributes`/ReadEfivarsFile().(filepath) |
| 22 | if err != nil { |
| 23 | t.Fatalscip-go gomod github.com/golang/go/src go1.23 testing/common#Fatal().(err) |
| 24 | } |
| 25 | ParseEFILoadOptionscip-go gomod github.com/foxboron/go-uefi . `github.com/foxboron/go-uefi/efi/device`/ParseEFILoadOption().(f) |
| 26 | ParseDevicePathscip-go gomod github.com/foxboron/go-uefi . `github.com/foxboron/go-uefi/efi/device`/ParseDevicePath().(f) |
| 27 | } |
| 28 | } |