petergtz / pegomock

Pegomock is a powerful, yet simple mocking framework for the Go programming language
Apache License 2.0
252 stars 28 forks source link

Duplicate imports in matcher of map type with key and value in the same package #105

Closed oceanful closed 3 years ago

oceanful commented 4 years ago

Generating a matcher for a map type in which both the key and value are in the same package (e.g. map[foo.Key]foo.Value) results in a duplicate import that fails to compile:

import (
    "reflect"
    "github.com/petergtz/pegomock"
    foo "github.com/foo/foo"
foo "github.com/foo/foo"
)
petergtz commented 3 years ago

Closing as this was resolved in #106.