testify
testify copied to clipboard
A toolkit with common assertions and mocks that plays nicely with the standard library
## Summary Adds OnF method to mock.Mock and mock.Call to allow defining mock expectations using function references instead of string method names. ## Changes * Added OnF method to mock.Mock...
## Summary Add @tylerb to EMERITUS.md. ## Motivation @tylerb is the Testify creator (according to Git history). ## Related issues Related to #1533.
## Description The current API of `require.IsType` is the following : `func require.IsType(t require.TestingT, expectedType interface{}, object interface{}, msgAndArgs ...interface{})`. As far as I'm aware, this requires me to create...
## Description Add a spy construct to testify. Spy Definition from Java https://www.baeldung.com/mockito-spy > When Mockito creates a mock, it does so from the Class of a Type, not from...
From #1235 by @Inuart ## Description When testing the Len of very large objects, the error message can appear very long or just not appear at all. Having a "printing...
## Summary Add NonPositive and NonNegative functions. ## Motivation I suppose it could be the extension of checking for positive and negative functionality ## Related issues
## Description Related to #473 and #1722. If testing.T.Skip is called in Before test, we should skip that test and its teardowns. If it's called in the suite setup, we...
## Summary The [go-yaml](https://github.com/go-yaml/yaml/) project was archived on Apr 1, 2025 and is no longer maintained. Luckily the official YAML organization forked the project and is maintaining it under https://github.com/yaml/go-yaml/tree/v3....
## Summary Merge code from package internal/imports (recently copied from package github.com/ernesto-jimenez/gogen/imports) into the codegen program itself. Also copy the license attached to it into the _codegen/main.go source, as _codegen/main.go...
## Description NotSubset (but not Subset) seems to be using %q to format error output, that doesn't work for many collection element types. ## Step To Reproduce ```go package kata_test...