Gabby Good created TINKERPOP-2785:
-------------------------------------

             Summary: Inability to Mock Returned Data Types in Gremlin-Go Driver
                 Key: TINKERPOP-2785
                 URL: https://issues.apache.org/jira/browse/TINKERPOP-2785
             Project: TinkerPop
          Issue Type: Bug
          Components: go
            Reporter: Gabby Good


The [ResultSet 
interface|https://github.com/apache/tinkerpop/blob/master/gremlin-go/driver/resultSet.go#L30]
 is mockable, as are its methods. However, the 
[Result|https://github.com/apache/tinkerpop/blob/master/gremlin-go/driver/result.go#L29]
 struct has no way to assign data, and the result field is unexported so you 
cannot assign to it directly. This makes it impossible to mock return data from 
any methods that return this type.

 

I have created [this PR|https://github.com/apache/tinkerpop/pull/1785] to 
export the result field, so that it can be mocked.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to