Uploaded image for project: 'TinkerPop'
  1. TinkerPop
  2. TINKERPOP-2785

Inability to Mock Returned Result Types in Gremlin-Go Driver

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Done
    • 3.5.4
    • 3.7.0, 3.6.2, 3.5.5
    • go
    • None

    Description

      The ResultSet interface is mockable, as are its methods. However, the Result 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 to export the result field, so that it can be mocked.

      Attachments

        Activity

          People

            spmallette Stephen Mallette
            good41898 Gabby Good
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: