File: all_failing.go

package info (click to toggle)
golang-github-approvals-go-approval-tests 0.0~git20180620.6ae1ec6-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 296 kB
  • sloc: xml: 16; makefile: 3
file content (18 lines) | stat: -rw-r--r-- 439 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package reporters

var (
	clipboardScratchData = ""
)

type allFailing struct{}

// NewAllFailingTestReporter copies move file command to your clipboard
func NewAllFailingTestReporter() Reporter {
	return &allFailing{}
}

func (s *allFailing) Report(approved, received string) bool {
	move := getMoveCommandText(approved, received)
	clipboardScratchData = clipboardScratchData + move + "\n"
	return copyToClipboard(clipboardScratchData)
}