Skip to content

fix: return errors for uninitialized temper reads#5

Open
taigrr wants to merge 1 commit into
masterfrom
cd/read-safe-zero-value
Open

fix: return errors for uninitialized temper reads#5
taigrr wants to merge 1 commit into
masterfrom
cd/read-safe-zero-value

Conversation

@taigrr

@taigrr taigrr commented Jun 10, 2026

Copy link
Copy Markdown
Owner

Summary

  • return a clear error instead of panicking when ReadC/ReadF is called on a nil or zero-value Temper
  • guard the context-aware read path for partially initialized devices too
  • add regression tests for nil and zero-value read calls

Testing

  • go test ./...
  • go test -race ./...
  • staticcheck ./...

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