pegomock icon indicating copy to clipboard operation
pegomock copied to clipboard

Pegomock is a powerful, yet simple mocking framework for the Go programming language

Results 29 pegomock issues
Sort by recently updated
recently updated
newest added

``` $ ~/workplace/go/src/github.com/petergtz/alexa-journal ± |master {1} U:7 ?:3 ✗| → pegomock generate --use-experimental-model-gen . JournalProvider panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1...

bug

Hello, is there a particular reason for not having migrated to Go modules ?

Creating Pegomock Matchers or Mocks for a type which is an alias for a private `./internal/` package type causes compile errors upon matcher creation. **Setup** In the example below, `status.Status`...

When running tests in `t.Parallel()`, the Golang race detector often fails with a data race: ``` ================== WARNING: DATA RACE Read at 0x000003717960 by goroutine 48: github.com/petergtz/pegomock.(*Matchers).append() /Users/ocean/go/pkg/mod/github.com/petergtz/[email protected]+incompatible/dsl.go:385 +0x143 github.com/petergtz/pegomock.RegisterMatcher()...

Hi and thanks for a great mocking framework! I just started using Pegomock and I found a few things related to the experience of using matchers that I would like...

Context: See the context here: https://github.com/petergtz/pegomock/issues/111 Oh hello again!! ![upside_down_sloth](https://user-images.githubusercontent.com/1844847/99887035-a2f01100-2c06-11eb-91d5-dad650e1722d.jpg) --- So now I've made a new discovery! I've tried mocking out this fancy `PostMessage` method in the slack client:...

Context: So I've stumbled upon needing to use this project while trying to resurrect the wildly out of date / broken slack client in Atlantis: https://github.com/runatlantis/atlantis/tree/master/server/events/webhooks I'm not sure how...

Some time some func panic with err Different number of return values, the mock which panic and whether it will panic is randomly, a plot is that I use a...

I have a test making calls to an interface with a fairly large struct. When the test fails owing to a verification failure, I have to scan through the error...

**Description** When generating matchers for a given interface method using Pegomock, it fails to create proper matchers for the empty struct type: `struct{}`. As a result, anything that passes around...