Comment

Comment by henvic

Why do some people use spaces when writing Table Driven Tests with Go? It makes it harder to run go test -run=TestName because you have to convert manually all " " to "_" and back.

This is at least a great reason why this 'test name with spaces' pattern isn't found in the standard library: https://github.com/golang/go/search?q=t.Run

parent henvic 5 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton