minimock icon indicating copy to clipboard operation
minimock copied to clipboard

minimock's generated mocks fail staticcheck's SA5011 (possible nil pointer dereference)

Open alexandre-normand opened this issue 3 months ago • 2 comments

I was trying to use minimock last week and found that the generated mocks were failing staticcheck's SA5011 - Possible nil pointer dereference.

Example:

cacher_mock_test.go:1921:65: possible nil pointer dereference (SA5011)

I ended up postponing using minimock for that reason but would love to revisit eventually.

Thanks!

alexandre-normand avatar Mar 25 '24 16:03 alexandre-normand