[
https://issues.apache.org/jira/browse/TINKERPOP-2785?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Stephen Mallette closed TINKERPOP-2785.
---------------------------------------
Fix Version/s: 3.7.0
3.6.2
3.5.5
Assignee: Stephen Mallette
Resolution: Done
> Inability to Mock Returned Result Types in Gremlin-Go Driver
> ------------------------------------------------------------
>
> Key: TINKERPOP-2785
> URL: https://issues.apache.org/jira/browse/TINKERPOP-2785
> Project: TinkerPop
> Issue Type: Improvement
> Components: go
> Affects Versions: 3.5.4
> Reporter: Gabby Good
> Assignee: Stephen Mallette
> Priority: Minor
> Fix For: 3.7.0, 3.6.2, 3.5.5
>
>
> 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)