How do you test filepath.Abs in Go?

March 22, 2023

A small detour from the Go spec today…

I recently came upon this question on StackOverflow: How do you test filepath.Abs failure in your Go code?

I answered it, and also made a video diving into the question and three possible answers a bit more deeply. Have a watch.

Share this