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

4
go.mod
View File

@@ -1,5 +1,5 @@
module github.com/taigrr/vidnumerator
go 1.26.0
go 1.26.1
require golang.org/x/sys v0.41.0
require golang.org/x/sys v0.42.0