vektra / mockery

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

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

Closed LandonTClipp closed 1 month ago

LandonTClipp commented 3 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