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

🧪 Add Unit Tests for FIFO Cache Operations to Achieve 100% Coverage #11

Open
raghavgh opened this issue Oct 22, 2024 · 0 comments
Open
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@raghavgh
Copy link
Owner

raghavgh commented Oct 22, 2024

The FIFO (First In, First Out) cache implementation in our gofast library currently lacks sufficient unit tests. This is a great opportunity to contribute by writing tests that ensure all operations on the FIFO cache are well-covered and functioning as expected.

What Needs to Be Done?

  • Write unit tests to cover all FIFO cache operations, including:
    1. Put()
    2. Get()
    3. Remove()
    4. Contains()
    5. Len()
    6. Clear()

  • Ensure 100% test coverage, and validate edge cases like cache overflows and evictions.

Why This Issue Matters:

  • Improved Reliability: Ensuring comprehensive test coverage guarantees that the FIFO cache works correctly under various conditions.
  • Build Confidence: You’ll help the project maintain a high-quality standard, making it more reliable for all users.
  • Learn and Contribute: This is an excellent chance to learn about writing unit tests in Go and contributing to an open-source project.

Get Started

  • Fork the repository: gofast
  • Explore the current implementation of the FIFO cache and write tests based on the existing cache interface.
  • Submit a pull request with your test cases once completed.

Need Help?

Feel free to reach out via issues or discussions. We’re here to help!

@raghavgh raghavgh added help wanted Extra attention is needed good first issue Good for newcomers labels Oct 22, 2024
@raghavgh raghavgh changed the title Add Unit tests for FIFO cache operations 🧪 Add Unit Tests for FIFO Cache Operations to Achieve 100% Coverage Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant