Skip to content

Commit

Permalink
Document mocking issue with context-aware interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
fbiville committed Sep 23, 2022
1 parent 6590ab1 commit e4b6e09
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions MIGRATION_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,14 @@ are all internal to the driver.
This should have 0 impact as they were internal utilities unreachable from
the public APIs.

### Private functions in interfaces

Both `neo4j.SessionWithContext` and `neo4j.ResultWithContext` define unexported functions.
These are needed to avoid duplication between the `context.Context`-aware interface and their legacy, pre v5, variants.
This may, however, cause issues with mocking libraries based on code generation.

It is possible to mock these interfaces, as explained [here](https://groups.google.com/g/golang-nuts/c/6hpUErAfMHI).

### Behavior changes

#### `ResultSummary#ContainUpdates`
Expand Down

0 comments on commit e4b6e09

Please sign in to comment.