Skip to content
#

matcher

Here are 126 public repositories matching this topic...

mockk
Kantis
Kantis commented Jun 2, 2021

Expected Behavior

Invoking a mockk should never cause a test to hang. If too many invocations lead to performance issues, it would be better to either:

  • throw an exception once a reasonable cap is reached
  • rotate away old data

Current Behavior

After invoking a mock around 130 000 times (on my machine, running JDK 15 on Windows) further invocations will hit a wall and take for

Highly optimized wildcard and glob matching library. Faster, drop-in replacement to minimatch and multimatch. Used by webpack, babel core, yarn, jest, browser-sync, documentation.js, stylelint, nyc, ava, and many others!

  • Updated Apr 15, 2021
  • JavaScript
dbreese
dbreese commented Jul 14, 2021

Take this class, for example:

`
import Foundation

// some comment has import SOMEBADTHING
public protocol TestProtocol: AnyObject {
func doSomething() -> Void
}
`

The generated mock ends up having:

... import SOMEBADTHING ...

Looks like it is looking for "{import .*}" in source files and just adding that verbatim to the output file, causing compile issues.

Pass two numbers, get a regex-compatible source string for matching ranges. Fast compiler, optimized regex, and validated against more than 2.78 million test assertions. Useful for creating regular expressions to validate numbers, ranges, years, etc.

  • Updated Oct 26, 2020
  • JavaScript
jsamr
jsamr commented Jan 27, 2020

Although the two source streams and the result stream have all a length of 5, an exception is thrown.

Reproduction:

import { cold, hot } from 'jest-marbles'
import { buffer, mergeAll } from 'rxjs/operators'

describe('test', () => {
  it('should not fail', () => {
    const source1 = cold('AB--|')
    const source2 = hot('^-A-|')
    expect(source1.pipe(buffer(source2), mergeAl

Improve this page

Add a description, image, and links to the matcher topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the matcher topic, visit your repo's landing page and select "manage topics."

Learn more