core/retry/retry_test.go
Function TestRetryWithBackoff
has 90 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func TestRetryWithBackoff(t *testing.T) {
// Test a function that succeeds on the first attempt.
t.Run("Success", func(t *testing.T) {
err := retry.WithBackoff(context.Background(), func(ctx context.Context) error {
return nil
Function TestRetryWithBackoff
has 9 return statements (exceeds 4 allowed). Open
Open
func TestRetryWithBackoff(t *testing.T) {
// Test a function that succeeds on the first attempt.
t.Run("Success", func(t *testing.T) {
err := retry.WithBackoff(context.Background(), func(ctx context.Context) error {
return nil