131
131
func (s *LocationSuite) TestParseLocationBogusLine(c *gc.C) {
132
132
_, err := logfwd.ParseLocation(validLocation.Module, "spam.go:xxx")
134
c.Check(err, gc.ErrorMatches, `failed to parse sourceLine: line number must be non-negative integer: strconv.ParseInt: parsing "xxx": invalid syntax`)
134
c.Check(err, gc.ErrorMatches, `failed to parse sourceLine: line number must be non-negative integer: strconv.(ParseInt|Atoi): parsing "xxx": invalid syntax`)
137
137
func (s *LocationSuite) TestValidateValid(c *gc.C) {