Testify is making your Go tests worse
Pop quiz. Does this testify assertion pass or fail? var x []int y := []int{} require.Equal(t, x, y) If you're like me, you have no idea. Arguments for both passing and failing seem reasonable. Let's jump to the docs: func Equal func Equal(t TestingT, expected, actual interface{}, msgAnd
ORIGINAL SOURCE →via Dev.to
ADVERTISEMENT
⚡ STAY AHEAD
Events like this, convergence-verified across 689 sources, land in your inbox every Sunday. Free.
GET THE SUNDAY BRIEFING →RELATED · tech
- [TECH] Launch: Soyuz 2.1a | Progress MS-34 (95P)
- [TECH] Launch: Falcon 9 Block 5 | Starlink Group 17-16
- [TECH] Launch: Electron | Kakushin Rising (JAXA Rideshare)
- [TECH] Launch: South Korean ADD Solid-Fuel SLV | Demo Flight
- [TECH] Launch: Falcon 9 Block 5 | Starlink Group 17-14
- [TECH] Launch: HASTE | Bubbles