func ok(tb testing.TB, err error) {
	if err != nil {
		_, file, line, _ := runtime.Caller(1)
		log.Printf("%s:%d: unexpected error: %s\n\n", filepath.Base(file), line, err.Error())
		tb.FailNow()
	}
}
// ok fails the test if an err is not nil.
ok fails the test if an err is not nil.
// ok fails the test if an err is not nil .
func ok(tb testing.TB, err error) {
	if err != nil {
		_, file, line, _ := runtime.Caller(1)
		log.Printf("%s:%d: unexpected error: %s\n\n", filepath.Base(file), line, err.Error())
		tb.FailNow()
	}
}
func ok ( tb testing . TB , err error ) { if err != nil { _ , file , line , _ := runtime . Caller ( 1 ) log . Printf ( " \n \n " , filepath . Base ( file ) , line , err . Error ( ) ) tb . FailNow ( ) } }
ok fails the test if an err is not nil.
ok fails the test if an err is not nil .