Skip to content

Fix go vet errors and update mobile decode tests - #18

Open
Qmaker-programmer wants to merge 1 commit into
divan:masterfrom
Qmaker-programmer:fix/vet-errors-and-mobile-tests
Open

Fix go vet errors and update mobile decode tests#18
Qmaker-programmer wants to merge 1 commit into
divan:masterfrom
Qmaker-programmer:fix/vet-errors-and-mobile-tests

Conversation

@Qmaker-programmer

Copy link
Copy Markdown

Summary

  • log.Println calls with %v formatting directives never interpolated their arguments (cmd/txqr-tester/app/app.go); switched to log.Printf.
  • session_test.go passed a slice to a %d verb instead of its length.
  • mobile/decode_test.go still used the pre-fountain-codes header format (blockCode/total), which no longer matches decode.go's expected blockCode/chunkLen/total, causing every test to fail with invalid header: unexpected EOF. Rewrote the tests to encode/decode through the real Encoder/Decoder round trip instead of hand-crafted headers.

Test plan

  • go vet ./... passes clean
  • go test ./... passes (except cmd/txqr-tester/app, which requires the GopherJS compiler and is expected to panic under plain go test)

log.Println calls with %v formatting directives never interpolated
their arguments; switched to log.Printf. session_test.go passed a
slice to a %d verb instead of its length.

mobile/decode_test.go still used the pre-fountain-codes header format
(blockCode/total), which no longer matches decode.go's expected
blockCode/chunkLen/total, causing every test to fail with "invalid
header: unexpected EOF". Rewrote the tests to encode/decode through
the real Encoder/Decoder round trip instead of hand-crafted headers.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant