Published by onsi over 1 year ago
Published by onsi over 1 year ago
Published by onsi over 1 year ago
Published by onsi almost 2 years ago
Published by onsi almost 2 years ago
MustPassRepeatedly(int)
to asyncAssertion (#619) [4509f72]Published by onsi almost 2 years ago
Published by onsi almost 2 years ago
Published by onsi almost 2 years ago
Introducting gcustom - a convenient mechanism for building custom matchers.
This is an RC release for gcustom
. The external API may be tweaked in response to feedback however it is expected to remain mostly stable.
Published by onsi about 2 years ago
Custom formatting on a per-type basis can be provided using format.RegisterCustomFormatter()
-- see the docs here
Substantial improvement have been made to StopTrying()
:
StopTrying().Wrap(err)
to wrap errors and StopTrying().Attach(description, object)
to attach arbitrary objects to the StopTrying()
errorStopTrying()
is now always interpreted as a failure. If you are an early adopter of StopTrying()
you may need to change your code as the prior version would match against the returned value even if StopTrying()
was returned. Going forward the StopTrying()
api should remain stable.StopTrying()
and StopTrying().Now()
can both be used in matchers - not just polled functions.TryAgainAfter(duration)
is used like StopTrying()
but instructs Eventually
and Consistently
that the poll should be tried again after the specified duration. This allows you to dynamically adjust the polling duration.
ctx
can now be passed-in as the first argument to Eventually
and Consistently
.
Published by onsi about 2 years ago
Published by onsi about 2 years ago
Several improvements have been made to Eventually
and Consistently
in this and the most recent releases:
These improvements are all documented in Gomega's docs
Published by onsi about 2 years ago
Published by onsi about 2 years ago
Published by onsi about 2 years ago
Published by onsi about 2 years ago
Published by onsi over 2 years ago
gleak
experimental goroutine leak detection package! (#538) [85ba7bc]BeComparableTo
matcher(#546) that uses gocmp
to make comparisons [e77ea75]HaveExistingField
matcher (#553) [fd130e1]HaveEach
matcher to ensure that each and every element in an array
, slice
, or map
satisfies the passed in matcher. (#523) [9fc2ae2] (#524) [c8ba582]Gomega
interface to implement custom behavior on each assertion. (#521) [1f2e714]ContainElement
now accepts an additional pointer argument. Elements that satisfy the matcher are stored in the pointer enabling developers to easily add subsequent, more detailed, assertions against the matching element. (#527) [1a4e27f]Published by onsi over 2 years ago
HaveEach
matcher to ensure that each and every element in an array
, slice
, or map
satisfies the passed in matcher. (#523) [9fc2ae2] (#524) [c8ba582]Gomega
interface to implement custom behavior on each assertion. (#521) [1f2e714]ContainElement
now accepts an additional pointer argument. Elements that satisfy the matcher are stored in the pointer enabling developers to easily add subsequent, more detailed, assertions against the matching element. (#527) [1a4e27f]Published by onsi over 2 years ago
Published by onsi almost 3 years ago
Published by onsi almost 3 years ago
Stop using deprecated ioutil package (#467) [07f405d]