diff --git a/command/runner_internals_test.go b/command/runner_internals_test.go index cd6584e..676d5bd 100644 --- a/command/runner_internals_test.go +++ b/command/runner_internals_test.go @@ -37,10 +37,10 @@ func testRegexp(t *testing.T, when spec.G, it spec.S) { { input: "//counterfeiter:generate . Intf", matches: true, - args: []string{".", "Intf"}, + args: []string{"counterfeiter", ".", "Intf"}, }, { - input: "//go:generate stringer -type=Enum", + input: "//go:generate stringer -type=Enum", matches: false, }, } @@ -55,8 +55,8 @@ func testRegexp(t *testing.T, when spec.G, it spec.S) { for _, c := range cases { result, ok := matchForString(c.input) if c.matches { - Expect(ok).To(BeTrue()) - Expect(result).To(ConsistOf(c.args)) + Expect(ok).To(BeTrue(), c.input) + Expect(result).To(ConsistOf(c.args), c.input) } else { Expect(ok).To(BeFalse()) } diff --git a/generator/generator_internals_test.go b/generator/generator_internals_test.go index bdeccdb..f524608 100644 --- a/generator/generator_internals_test.go +++ b/generator/generator_internals_test.go @@ -1,7 +1,6 @@ package generator import ( - "fmt" "io/ioutil" "log" "runtime" @@ -60,10 +59,6 @@ func testGenerator(t *testing.T, when spec.G, it spec.S) { Expect(f.Name).To(Equal("FakeFileInfo")) Expect(f.Mode).To(Equal(InterfaceOrFunction)) Expect(f.DestinationPackage).To(Equal("osfakes")) - fmt.Println("!!!") - fmt.Println(runtime.Version()) - fmt.Println(runtime.Version()[0:6]) - fmt.Println("!!!") switch runtime.Version()[0:6] { case "go1.15", "go1.14": Expect(f.Imports).To(BeEquivalentTo(Imports{