Debian Codegraph @

reporters/all_failing.go

raw
1 package reporters
2
3 var (
4 clipboardScratchData = ""
5 )
6
7 type allFailing struct{}
8
9 // NewAllFailingTestReporter copies move file command to your clipboard
10 func NewAllFailingTestReporter() Reporter {
11 return &allFailing{}
12 }
13
14 func (s *allFailing) Report(approved, received string) bool {
15 move := getMoveCommandText(approved, received)
16 clipboardScratchData = clipboardScratchData + move + "\n"
17 return copyToClipboard(clipboardScratchData)
18 }