shoenig/gopp-cs345 — Issue #6: Fix test cases for unused packages
Author: shoenig
Created: 2011-10-19 04:18:24+00:00
State: open

I want less of this raining on my parade.

--- cd ../test
bug: ./import1.go
bug: ./import4.go
bug: fixedbugs/bug240.go
29a30,46
> =========== ./import1.go
> BUG: errchk: ./import1.go:12: error messages do not match 'imported and not used'
> errchk: ./import1.go:12: unmatched error messages:
> > WARNING: ./import1.go:12: unused import: os
> errchk: ./import1.go:16: error messages do not match 'imported and not used'
> errchk: ./import1.go:16: unmatched error messages:
> > WARNING: ./import1.go:16: unused import: math
>
> =========== ./import4.go
> BUG: errchk: command succeeded unexpectedly
> WARNING: ./import4.go:23: unused import: /home/seth/go++/go/test/empty
> WARNING: ./import4.go:18: unused import: bufio
> WARNING: ./import4.go:21: unused import: /home/seth/go++/go/test/empty
> WARNING: ./import4.go:15: unused import: math
> WARNING: ./import4.go:22: unused import: /home/seth/go++/go/test/empty
> WARNING: ./import4.go:12: unused import: fmt
>
163a181,187
>
> =========== fixedbugs/bug240.go
> BUG: errchk: fixedbugs/bug240.go:9: missing expected error: '"not used"'
> errchk: unmatched error messages:
> ==================================================
> WARNING: fixedbugs/bug240.go:10: unused import: unsafe
> ==================================================
0 known bugs; 3 unexpected bugs; test output differs
FAILED