Skip to content

feat: add tests, fix typo, extract constant, bump deps - #2

Merged
taigrr merged 1 commit into
masterfrom
cd/tests-quality-deps
Mar 29, 2026
Merged

feat: add tests, fix typo, extract constant, bump deps#2
taigrr merged 1 commit into
masterfrom
cd/tests-quality-deps

Conversation

@taigrr

@taigrr taigrr commented Mar 28, 2026

Copy link
Copy Markdown
Owner

Changes

  • Tests: Add 6 tests covering cap.QueryFd nil receiver, invalid fd, IsVideoCapture with invalid path and regular file, EnumeratedVideoDevices smoke test, and V4L2CapVideoCapture constant verification
  • Fix typo: fileDesciptorfileDescriptor in QueryFd parameter name
  • Extract constant: Magic number 69206017 → named V4L2CapVideoCapture constant with documentation
  • Deps: Bump golang.org/x/sys v0.41.0 → v0.42.0
  • Go version: 1.26.0 → 1.26.1
  • CI: Add staticcheck to test workflow

- 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
@taigrr
taigrr merged commit 4aa3374 into master Mar 29, 2026
1 check passed
@taigrr
taigrr deleted the cd/tests-quality-deps branch July 26, 2026 03:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant