ruby / ruby/mutex_m

Add a test for Mutex_m#try_lock

Open Beginner friendly
#58 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Ruby
Stars
78
Forks
12
Avg merge
3d 21h
Merged PRs (30d)
2

Description

The current tests check that try_lock exists, but they do not verify how it behaves.
It would be useful to test that the first call succeeds and a second call returns false while the mutex is already locked.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the current tests for Mutex_m#try_lock and run the existing test suite. Add coverage showing that the first call succeeds and a second call while the mutex remains locked returns false; done means both behaviors are asserted.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
testing
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Active
Clarity
Clearly specified
Newbie friendliness
85/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.