This only happens if msg.String() has been called on the generated message
Using "github.com/alecthomas/assert/v2"
If proto.Resource is a struct generated from a proto file with protoc-gen-go
This never finishes
t.Run("protoc message is not zero", func(t *testing.T) {
res := &proto.Resource{}
_ = res.String()
assert.NotZero(t, res)
})
While this works correctly
t.Run("protoc message is not zero", func(t *testing.T) {
res := &proto.Resource{}
assert.NotZero(t, res)
})
This only happens if
msg.String()has been called on the generated messageUsing
"github.com/alecthomas/assert/v2"If
proto.Resourceis a struct generated from a proto file withprotoc-gen-goThis never finishes
While this works correctly