forked from maxbrunsfeld/counterfeiter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add interactive option when only a path is provided
- Loading branch information
Showing
11 changed files
with
489 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package fixtures | ||
|
||
type FirstInterface interface { | ||
DoThings() | ||
} | ||
|
||
type SecondInterface interface { | ||
EmbeddedMethod() string | ||
} | ||
|
||
type unexportedInterface interface{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
// This file was generated by counterfeiter | ||
package fakes | ||
|
||
import ( | ||
"sync" | ||
|
||
"github.com/maxbrunsfeld/counterfeiter/locator" | ||
) | ||
|
||
type FakeInterfaceLocator struct { | ||
GetInterfacesFromFilePathStub func(string) []string | ||
getInterfacesFromFilePathMutex sync.RWMutex | ||
getInterfacesFromFilePathArgsForCall []struct { | ||
arg1 string | ||
} | ||
getInterfacesFromFilePathReturns struct { | ||
result1 []string | ||
} | ||
} | ||
|
||
func (fake *FakeInterfaceLocator) GetInterfacesFromFilePath(arg1 string) []string { | ||
fake.getInterfacesFromFilePathMutex.Lock() | ||
fake.getInterfacesFromFilePathArgsForCall = append(fake.getInterfacesFromFilePathArgsForCall, struct { | ||
arg1 string | ||
}{arg1}) | ||
fake.getInterfacesFromFilePathMutex.Unlock() | ||
if fake.GetInterfacesFromFilePathStub != nil { | ||
return fake.GetInterfacesFromFilePathStub(arg1) | ||
} else { | ||
return fake.getInterfacesFromFilePathReturns.result1 | ||
} | ||
} | ||
|
||
func (fake *FakeInterfaceLocator) GetInterfacesFromFilePathCallCount() int { | ||
fake.getInterfacesFromFilePathMutex.RLock() | ||
defer fake.getInterfacesFromFilePathMutex.RUnlock() | ||
return len(fake.getInterfacesFromFilePathArgsForCall) | ||
} | ||
|
||
func (fake *FakeInterfaceLocator) GetInterfacesFromFilePathArgsForCall(i int) string { | ||
fake.getInterfacesFromFilePathMutex.RLock() | ||
defer fake.getInterfacesFromFilePathMutex.RUnlock() | ||
return fake.getInterfacesFromFilePathArgsForCall[i].arg1 | ||
} | ||
|
||
func (fake *FakeInterfaceLocator) GetInterfacesFromFilePathReturns(result1 []string) { | ||
fake.GetInterfacesFromFilePathStub = nil | ||
fake.getInterfacesFromFilePathReturns = struct { | ||
result1 []string | ||
}{result1} | ||
} | ||
|
||
var _ locator.InterfaceLocator = new(FakeInterfaceLocator) |
Oops, something went wrong.