f-tests as a replacement for table-driven tests in Go
Table-driven tests in Go is the officially recommended way to write multiple tests for some function, which may produce different outputs for different inputs. See this article, which explains theā¦
Table-driven tests work really well for simple input-output tests like in https://go.dev/wiki/TableDrivenTests. But when you need to do something more complicated they become absolute hell to read and understand.
Go Wiki: TableDrivenTests - The Go Programming Language