ggodik commented on issue #37590:
URL: https://github.com/apache/arrow/issues/37590#issuecomment-1708865635

   @zeroshade 
   
   there's a lot of places where `arrow.NewSchema` is inlined in unit tests
   
   what do you think about a helper to wrap it 
   
   ```
   // NoError is a helper function that asserts that the error is nil and 
returns the value.
   func NoError[S any](t *testing.T) func(s S, err error) S {
        return func(s S, err error) S {
                assert.NoError(t, err)
                return s
        }
   }
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to