/*
The gomocktestreporter package provides a Ginkgo friendly implementation of [Gomock's](https://code.google.com/p/gomock/) `TestReporter` interface.

More details and a code example are [here](http://onsi.github.io/ginkgo/#integrating_with_gomock).
*/
package gomocktestreporter

import (
	"fmt"
	"github.com/onsi/ginkgo"
)

type GomockTestReporter struct{}

func New() GomockTestReporter {
	return GomockTestReporter{}
}

func (g GomockTestReporter) Errorf(format string, args ...interface{}) {
	ginkgo.Fail(fmt.Sprintf(format, args), 3)
}

func (g GomockTestReporter) Fatalf(format string, args ...interface{}) {
	ginkgo.Fail(fmt.Sprintf(format, args), 3)
}

/*
The gomocktestreporter package provides a Ginkgo friendly implementation of [Gomock's](https://code.google.com/p/gomock/) `TestReporter` interface.

More details and a code example are [here](http://onsi.github.io/ginkgo/#integrating_with_gomock).
*/
package gomocktestreporter

import (
	"fmt"
	"github.com/onsi/ginkgo"
)

type GomockTestReporter struct{}

func New() GomockTestReporter {
	return GomockTestReporter{}
}

func (g GomockTestReporter) Errorf(format string, args ...interface{}) {
	ginkgo.Fail(fmt.Sprintf(format, args...), 3)
}

func (g GomockTestReporter) Fatalf(format string, args ...interface{}) {
	ginkgo.Fail(fmt.Sprintf(format, args...), 3)
}

Fix bug in the GomockTestReporter
Fix bug in the GomockTestReporter

The variadic function arguments where passed as array instead of a
regular list of arguments. See http://golang.org/doc/effective_go.html#Printing
for more details.
