kalexmills / rangeloop-test-repo

Test repository
0 stars 0 forks source link

dachengzao/golangBBS: vendor/github.com/globalsign/mgo/session_test.go; 5 LoC #4310

Open githubvet opened 3 years ago

githubvet commented 3 years ago

Found a possible issue in dachengzao/golangBBS at vendor/github.com/globalsign/mgo/session_test.go

Below is the message reported by the analyzer for this snippet of code. Beware that the analyzer only reports the first issue it finds, so please do not limit your consideration to the contents of the below message.

function call which takes a reference to item at line 4071 may start a goroutine

Click here to see the code in its original context.

Click here to show the 5 line(s) of Go which triggered the analyzer. ```go for _, item := range result { c.Logf("Item: %#v", &item) c.Assert(item.Value, Equals, expected[item.Id]) expected[item.Id] = -1 } ```

Leave a reaction on this issue to contribute to the project by classifying this instance as a Bug :-1:, Mitigated :+1:, or Desirable Behavior :rocket: See the descriptions of the classifications here for more information.

commit ID: 2d9d122019c9d0439d9e582f2739f374e117f788