summaryrefslogtreecommitdiff
path: root/vendor/github.com/smartystreets/goconvey/convey/reporting/console.go
blob: 7bf67dbb2b14cb4534b5984ba6cbc83e1b4bc761 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package reporting

import (
	"fmt"
	"io"
)

type console struct{}

func (self *console) Write(p []byte) (n int, err error) {
	return fmt.Print(string(p))
}

func NewConsole() io.Writer {
	return new(console)
}