Testing on the Toilet

Sumit Gogia

Testing on the Toilet

What’s the big deal about testing?

I mean, you’re going to need to iterate.

Let’s take some basic example code that my spiffy-diffy LLM buddy wrote:

type Authorizer interface {
    // Decide whether based on context remaining actions 
    // are authorized.
    func Authorize(ctx context.Context) (bool, error)
}

I mean - this is just too abstract an interface right? Also it’s only an interface so you can’t test it yet.