3 ms·
I don't want to write tests, why? Because most of them are like x = 1; if x != 1 panic(); If you don't trust the language, why do you use it? But then there ar
by lakomen 4y ago
I don't want to write tests, why?
Because most of them are like
x = 1; if x != 1 panic();
If you don't trust the language, why do you use it?
But then there are tests that make sense but are hard to write.
And then there are tests that require infrastucture.
I don't write tests for every little thing. But I do write them if I actually do want to test the functionality of what I just wrote.
But stuff like
s := new (Service)
if s == nil {
t.Fail()
}
is completely unnecessary