gojuno / minimock

Powerful mock generation tool for Go programming language
MIT License
626 stars 38 forks source link

-p flag is ignored #4

Closed genesor closed 6 years ago

genesor commented 6 years ago

Even if the flag is marked as DEPRECATED it's not working anymore.

$ minimock -i github.com/gojuno/minimock/tests.Stringer -o ./tests/ -p mock
DEPRECATED FLAG: -p
Generated file: tests/stringer_mock_test.go

Generates this file:

package tests

/*
DO NOT EDIT!
This code was generated automatically using github.com/gojuno/minimock v1.7
The original interface "Stringer" can be found in github.com/gojuno/minimock/tests
*/
import (
    "sync/atomic"
    "time"

    "github.com/gojuno/minimock"
)

//StringerMock implements github.com/gojuno/minimock/tests.Stringer
type StringerMock struct {
    t minimock.Tester

    StringFunc    func() (r string)
    StringCounter uint64
    StringMock    mStringerMockString
}
.....
hexdigest commented 6 years ago

Hi @genesor

Issue is fixed now, better late than never. Thank you for you report!