Bhargav Ravuri

Results 8 issues of Bhargav Ravuri

## Summary Colorizes `error`, `expected`, `actual`, `test` name and `message` of the assert failure cases for better visualization. ## Changes 1. Colorizing changes in assert package as per #946 2....

enhancement
pkg-assert
enhancement: colored output

Both `InEpsilon` and `InEpsilonSlice` has parameter `expected` before `actual` ```go func InEpsilon(t TestingT, expected, actual interface{}, epsilon float64, msgAndArgs ...interface{}) bool func InEpsilonSlice(t TestingT, expected, actual interface{}, epsilon float64, msgAndArgs...

# Motivation [Issue](https://github.com/gojek/heimdall/issues/127) #127 reported by @sebastian-popa # Changes 1. Condition to verify hystrix-timeout error and exit w/o retry. Add unit test to verify the same. 2. Upgrade version of...

# Motivation [Issue](https://github.com/rs/zerolog/issues/470) #470 reported by @skormos # Changes Adds new internal package `errors` with test coverage. # Summary Localizes following functions (and required types and methods) from [github.com/pkg/errors](https://github.com/pkg/errors) as...

I have too many mocked calls in my test and so, `mock.AssertExpectationsForObjects` prints too many logs. Let's just say in the **success case**, I'd like to **suppress** the assertion pass...

# Motivation [Issue](https://github.com/mitchellh/mapstructure/issues/279) #279 reported by @kszafran # Changes Check in `decode struct -> map` for extra fields encoded with `remain` tag, and flatten in resultant map. Add corresponding tests:...

# Motivation [Issue 352](https://github.com/spf13/pflag/issues/352) reported by @wimglenn # Changes Remove redundant error print function call in `failf`. # Summary This deletes the extra error log which gets printed when opted...

# Motivation [Issue 362](https://github.com/spf13/pflag/issues/362) reported by @SOF3 # Changes Sort keys before stringifying string-to-string flag values. # Summary String-to-string default values in usage would print in sorted order of keys....