testify/mock
Edward Raigosa b5ce165710
fixing panic in calls to assertion with nil m.mutex (#1212)
* fixing panic in calls to assertion with nil m.mutex

This reverts a change that was made in https://github.com/stretchr/testify/pull/1182
The PR makes m.mutex a pointer which now needs to be checked but it's not checked for nil everywhere.

This should also help with these issues:
- https://github.com/stretchr/testify/issues/1208
- https://github.com/stretchr/testify/issues/1210

* Revert throwing out the lock because other concurrent calls can already have it locked

* fix go vet copy lock by using pointer

* fix obj assignment for passing test
2022-06-24 10:11:59 +10:00
..
doc.go Fix most golint warnings 2016-01-09 19:30:22 +01:00
mock.go fixing panic in calls to assertion with nil m.mutex (#1212) 2022-06-24 10:11:59 +10:00
mock_test.go Mock can be deadlocked by a panic (#1157) 2022-06-23 19:42:21 +10:00