mirror of
https://github.com/foomo/squadron.git
synced 2025-10-16 12:35:42 +00:00
15 lines
229 B
Go
15 lines
229 B
Go
package testutils
|
|
|
|
import (
|
|
"fmt"
|
|
"testing"
|
|
)
|
|
|
|
func Must(t *testing.T, err error, args ...interface{}) {
|
|
t.Helper()
|
|
if err != nil {
|
|
args = append([]interface{}{fmt.Sprintf("err: %s", err)}, args...)
|
|
t.Fatal(args...)
|
|
}
|
|
}
|