mirror of
https://github.com/stretchr/testify.git
synced 2025-04-27 13:13:19 +00:00
Update vendored go-spew to fix crash on OS X.
https://github.com/AlekSi/0xb01dfacedebac1e https://github.com/golang/go/issues/14631
This commit is contained in:
parent
1f4a1643a5
commit
521c4b6818
2
Godeps/Godeps.json
generated
2
Godeps/Godeps.json
generated
@ -7,7 +7,7 @@
|
||||
"Deps": [
|
||||
{
|
||||
"ImportPath": "github.com/davecgh/go-spew/spew",
|
||||
"Rev": "2df174808ee097f90d259e432cc04442cf60be21"
|
||||
"Rev": "5215b55f46b2b919f50a1df0eaa5886afe4e3b3d"
|
||||
},
|
||||
{
|
||||
"ImportPath": "github.com/pmezard/go-difflib/difflib",
|
||||
|
15
vendor/github.com/davecgh/go-spew/spew/bypass.go
generated
vendored
15
vendor/github.com/davecgh/go-spew/spew/bypass.go
generated
vendored
@ -91,6 +91,21 @@ func init() {
|
||||
flagKindShift = 0
|
||||
flagRO = 1 << 5
|
||||
flagIndir = 1 << 6
|
||||
|
||||
// Commit adf9b30e5594 modified the flags to separate the
|
||||
// flagRO flag into two bits which specifies whether or not the
|
||||
// field is embedded. This causes flagIndir to move over a bit
|
||||
// and means that flagRO is the combination of either of the
|
||||
// original flagRO bit and the new bit.
|
||||
//
|
||||
// This code detects the change by extracting what used to be
|
||||
// the indirect bit to ensure it's set. When it's not, the flag
|
||||
// order has been changed to the newer format, so the flags are
|
||||
// updated accordingly.
|
||||
if upfv&flagIndir == 0 {
|
||||
flagRO = 3 << 5
|
||||
flagIndir = 1 << 7
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
2
vendor/github.com/davecgh/go-spew/spew/dump.go
generated
vendored
2
vendor/github.com/davecgh/go-spew/spew/dump.go
generated
vendored
@ -181,8 +181,6 @@ func (d *dumpState) dumpSlice(v reflect.Value) {
|
||||
// Try to use existing uint8 slices and fall back to converting
|
||||
// and copying if that fails.
|
||||
case vt.Kind() == reflect.Uint8:
|
||||
// TODO(davec): Fix up the disableUnsafe bits...
|
||||
|
||||
// We need an addressable interface to convert the type
|
||||
// to a byte slice. However, the reflect package won't
|
||||
// give us an interface on certain things like
|
||||
|
Loading…
x
Reference in New Issue
Block a user