vektra / mockery

A mock code autogenerator for Go
https://vektra.github.io/mockery/
BSD 3-Clause "New" or "Revised" License
6.15k stars 412 forks source link

Allow types defined as instantiated generic interfaces to generate mocks #790

Closed LandonTClipp closed 3 months ago

LandonTClipp commented 4 months ago

Description

Allow *ast.IndexExpr in a *ast.TypeSpec to be a mock target.

Fixes issue #787

Type of change

Version of Golang used when building/testing:

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

Checklist