poy / eachers Goto Github PK
View Code? Open in Web Editor NEWGomega matchers that integrate with hel mocks
License: MIT License
Gomega matchers that integrate with hel mocks
License: MIT License
When comparing a []byte to nil via BeCalled(With(...)) we got this odd error message:
Test Panicked
runtime error: comparing uncomparable type []uint8
/usr/local/go/src/runtime/panic.go:423
Full Stack Trace
/usr/local/go/src/runtime/alg.go:250 (0x2f2a)
efaceeq: panic(errorString("comparing uncomparable type " + *t._string))
/Users/bob/gobal/src/github.com/apoydence/eachers/becalled.go:65 (0x134f73)
(*Called).Match: if call[i] != recvd {
/Users/bob/gobal/src/github.com/onsi/gomega/internal/asyncassertion/async_assertion.go:110 (0x1ea98a)
/Users/bob/gobal/src/github.com/onsi/gomega/internal/asyncassertion/async_assertion.go:48 (0x1e9e98)
/Users/bob/gobal/src/foo/bar.go:77 (0x87870)
glob.func1.2.2.2.3: Eventually(mockPublisher.PublishInput.Value).Should(BeCalled(With(bytes)))
Not very obvious from the error message what the problem is.
If you have a component running using Gexec that was compiled with the race detector. The race won't make the test fail. It would be great if we could wrap the GinkgoWriter to look for the data race text.
This is another style of matcher that would be very valuable. Ideally, it could integrate with the Each
matcher as well.
I don't know about the Returning()
bit, but I think it warrants discussion.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.