feat: add tests, fix typo, extract magic number, bump deps

- Add 6 tests covering nil receiver, invalid fd, invalid path,
  regular file, device enumeration, and capability constant
- Fix typo: fileDesciptor -> fileDescriptor
- Extract magic number 69206017 into V4L2CapVideoCapture constant
- Bump golang.org/x/sys v0.41.0 -> v0.42.0
- Bump Go 1.26.0 -> 1.26.1
- Add staticcheck to CI workflow
This commit is contained in:
2026-03-28 06:31:45 +00:00
parent 7c18d017dc
commit 430e5972d3
5 changed files with 92 additions and 8 deletions

View File

@@ -14,4 +14,6 @@ jobs:
- run: go test -race ./...
- run: go vet ./...
- run: go build ./...
- name: Install staticcheck
run: go install honnef.co/go/tools/cmd/staticcheck@latest
- run: staticcheck ./...