PHONG B NGUYEN

65%
Flag icon
When we really must stop a test function, perhaps because some initialization code failed or to prevent a failure already reported from causing a confusing cascade of others, we use t.Fatal or t.Fatalf. These must be called from the same goroutine as the Test function, not from another one created during the test.
The Go Programming Language
Rate this book
Clear rating
Open Preview