Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: improvement HTTP status for better clarity and consistency and fix updated url package #2

Merged
merged 6 commits into from
Feb 13, 2024

Conversation

tech-andgar
Copy link
Contributor

  • Refactor operator == method in HttpStatus class
  • Refactor HTTP status code extension for better clarity and consistency

tech-andgar and others added 6 commits February 10, 2024 09:26
- Renamed `int_extension.dart` to `int_http_status_code_extension.dart`
- Updated import statements in `src.dart` to reflect the new file name
The `operator ==` method in the `HttpStatus` class has been refactored to use the `covariant` keyword. This change improves type safety and ensures that the comparison is done correctly. The new implementation checks if the objects are identical or have the same runtime type and code.

Additionally, the `toString()` method has been updated to provide a more detailed representation of an instance of `HttpStatus`. It now includes the code, name, and description properties.
refactor: improvement HTTP status for better clarity and consistency
@tech-andgar tech-andgar merged commit 5471929 into DartForge:main Feb 13, 2024
1 of 5 checks passed
@coveralls
Copy link

Pull Request Test Coverage Report for Build 7892110961

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 0 of 5 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 100.0%

Totals Coverage Status
Change from base Build 7891570037: 0.0%
Covered Lines: 24
Relevant Lines: 24

💛 - Coveralls

tech-andgar added a commit that referenced this pull request Feb 17, 2024
feat(CHANGELOG): Update for version 3.1.0
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.

2 participants