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 busted's match global to builtin_standards #200

Closed
wants to merge 1 commit into from

Conversation

treffynnon
Copy link

The busted project has the concept of matchers than are documented over at
https://olivinelabs.com/busted/#matchers and can be used in assertions with
the match keyword.

For example:

assert.spy(s).was_called_with(match.is_string())

The busted project has the concept of matchers than are documented over at
https://olivinelabs.com/busted/#matchers and can be used in assertions with
the `match` keyword.

For example:

```lua
assert.spy(s).was_called_with(match.is_string())
```
@codecov-io
Copy link

codecov-io commented Nov 12, 2019

Codecov Report

Merging #200 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #200   +/-   ##
=======================================
  Coverage   97.38%   97.38%           
=======================================
  Files          52       52           
  Lines        5512     5512           
=======================================
  Hits         5368     5368           
  Misses        144      144
Impacted Files Coverage Δ
src/luacheck/builtin_standards/init.lua 99.61% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7360cfb...f2baceb. Read the comment docs.

@alerque
Copy link

alerque commented Oct 7, 2021

@treffynnon If you are still around would you mind opening this branch as a PR against this repository (the new canonical home, see #198). I would be happy to checkout and merge this contribution over there.

cyphar added a commit to cyphar/koreader that referenced this pull request Oct 24, 2021
This is something luacheck should include but the upstream PR to add
it[1] hasn't been merged yet, nor has the patch been included in the
fork.

[1]: mpeterv/luacheck#200

Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
@treffynnon treffynnon closed this Apr 2, 2024
@treffynnon treffynnon deleted the patch-1 branch April 2, 2024 06:31
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.

3 participants