packer-cn/vendor/github.com/approvals/go-approval-tests/reporters/beyond_compare.go

16 lines
410 B
Go
Raw Normal View History

2016-07-11 18:08:28 -04:00
package reporters
type beyondCompare struct{}
// NewBeyondCompareReporter creates a new reporter for Beyond Compare 4.
func NewBeyondCompareReporter() Reporter {
return &beyondCompare{}
}
func (s *beyondCompare) Report(approved, received string) bool {
xs := []string{received, approved}
programName := "C:/Program Files/Beyond Compare 4/BComp.exe"
return launchProgram(programName, approved, xs...)
}