Skip to content

feat: add ReadTimeoutHandler to handlers in samps module#5

Merged
michealroberts merged 1 commit intomainfrom
feature/handlers/ReadTimeoutHandler
May 6, 2025
Merged

feat: add ReadTimeoutHandler to handlers in samps module#5
michealroberts merged 1 commit intomainfrom
feature/handlers/ReadTimeoutHandler

Conversation

@michealroberts
Copy link
Owner

feat: add ReadTimeoutHandler to handlers in samps module

@michealroberts michealroberts requested a review from Copilot May 6, 2025 12:50
@michealroberts michealroberts self-assigned this May 6, 2025
@michealroberts michealroberts added the enhancement New feature or request label May 6, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces a new ReadTimeoutHandler into the samps module along with a comprehensive set of tests validating its behavior.

  • Adds the ReadTimeoutHandler class for managing read timeouts.
  • Implements functionality to start, check expiration, reset the timer, and represent its state.
  • Provides unit tests covering non-timeout, timeout, expiration, and reset cases.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
test/test_handlers.py Adds unit tests validating the behavior of ReadTimeoutHandler.
src/samps/handlers.py Implements the ReadTimeoutHandler with timeout logic and related utility methods.

@michealroberts michealroberts force-pushed the feature/handlers/ReadTimeoutHandler branch from 6702a13 to 29aa385 Compare May 6, 2025 14:06
@michealroberts michealroberts requested a review from Copilot May 6, 2025 14:18
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces a new ReadTimeoutHandler for managing read timeouts in the samps module.

  • Adds a ReadTimeoutHandler class in src/samps/handlers.py that computes timeouts in milliseconds.
  • Provides comprehensive unit tests in test/test_handlers.py to verify the handler’s behavior.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
test/test_handlers.py New tests to validate various timeout and reset scenarios.
src/samps/handlers.py New ReadTimeoutHandler implementation with methods for timeout comparison and representation.

@michealroberts michealroberts force-pushed the feature/handlers/ReadTimeoutHandler branch 2 times, most recently from 8bea709 to 559a7e3 Compare May 6, 2025 14:35
@michealroberts michealroberts requested a review from Copilot May 6, 2025 14:35
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a ReadTimeoutHandler to the samps module for managing read timeouts in serial communication. Key changes include the implementation of the ReadTimeoutHandler class with its associated methods and adding unit tests to verify its behavior.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/samps/handlers.py Implements the ReadTimeoutHandler functionality
test/test_handlers.py Provides unit tests to validate the handler

feat: add ReadTimeoutHandler to handlers in samps module
@michealroberts michealroberts force-pushed the feature/handlers/ReadTimeoutHandler branch from 559a7e3 to 4f3850f Compare May 6, 2025 14:45
@michealroberts michealroberts requested a review from Copilot May 6, 2025 14:45
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces a new ReadTimeoutHandler in the samps module for managing read timeouts, accompanied by unit tests.

  • Added ReadTimeoutHandler implementation in src/samps/handlers.py
  • Created test cases for ReadTimeoutHandler functionality in test/test_handlers.py

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/samps/handlers.py Added ReadTimeoutHandler class with timeout management methods
test/test_handlers.py Provided unit tests to validate ReadTimeoutHandler behavior

@michealroberts michealroberts merged commit 83fcf1d into main May 6, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants