v2.0.0 : Fixed golang style issues (#65)
In writeResult.go, two error strings began with an uppercase letter and ended with a dot. See https://github.com/golang/go/wiki/Errors for more information
This commit is contained in:
committed by
GitHub
parent
8c2c7123aa
commit
375080f960
@@ -78,7 +78,7 @@ func (t *Tester) WriteResults(result Test, output string) bool {
|
|||||||
// Write tests results under JUnit format on w
|
// Write tests results under JUnit format on w
|
||||||
func (t *Tester) writeJUnitReportXML(result Test, rw io.ReadWriter, output string) error {
|
func (t *Tester) writeJUnitReportXML(result Test, rw io.ReadWriter, output string) error {
|
||||||
if result.expected == nil && result.result == nil {
|
if result.expected == nil && result.result == nil {
|
||||||
return errors.New("Test results could not be deserialized.")
|
return errors.New("test results could not be deserialized")
|
||||||
}
|
}
|
||||||
|
|
||||||
suites := JUnitTestSuites{}
|
suites := JUnitTestSuites{}
|
||||||
@@ -155,7 +155,7 @@ func (t *Tester) writeJUnitReportXML(result Test, rw io.ReadWriter, output strin
|
|||||||
writer.Write(bytes)
|
writer.Write(bytes)
|
||||||
|
|
||||||
if failureCount > 0 {
|
if failureCount > 0 {
|
||||||
return errors.New("Some cameras were not successfully accessed.")
|
return errors.New("some cameras were not successfully accessed")
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user