You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The gocyclo tool used by goreport card reported the following:
Gocyclo calculates cyclomatic complexities of functions in Go source code. The cyclomatic complexity of a function is calculated according to the following rules: 1 is the base complexity of a function +1 for each 'if', 'for', 'case', '&&' or '||' Go Report Card warns on functions with cyclomatic complexity > 15.
gonyan/bufferedstream_test.go
Line 51: warning: cyclomatic complexity 21 of function TestSetStartingSize() is high (> 15) (gocyclo)
Line 241: warning: cyclomatic complexity 19 of function TestAutonomousTransmissionRoutine() is high (> 15) (gocyclo)
Line 162: warning: cyclomatic complexity 16 of function TestSetSchedulingInterval() is high (> 15) (gocyclo)
To keep the whole code easy and clean let's simplify these tests.
The text was updated successfully, but these errors were encountered:
The gocyclo tool used by goreport card reported the following:
To keep the whole code easy and clean let's simplify these tests.
The text was updated successfully, but these errors were encountered: