Repository navigation
Strengthen tests and CI - #69
Merged
Merged
Conversation
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- Run tests on Ubuntu and Windows, with the race detector on Ubuntu - Add gofmt check (make fmt-check) and format two unformatted files - Add handler tests (local files, directories, home expansion, passthrough) - Add auth middleware tests - Add CI badge and document make test / fmt-check Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
filepath.Abs prepends the current drive to a rooted path without one, so use a real absolute path. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
file:///, absolute paths per source), line anchors (incl. CRLF and raw HTML blocks),.txtconversion, local handler (Markdown, text, as-is files, directory listing, not found, path cleaning,~expansion, CSP nonce) andauthMiddleware. Overall coverage 44% -> higher;handler7.5% -> covered for the local path.ubuntu-latestandwindows-latest(path handling),go test -raceon Ubuntu,gofmtcheck via newmake fmt-check.listmarker.go,resolve_test.go; formatting only).make test/make fmt-check.No production code behavior changes.
Notes
GOOS=windows go vet ./...passes, and the new file tests build URLs fromt.TempDir()so they exercise drive-letter paths on the Windows runner.foo.md:Nfalls back to the nearest preceding anchor in the page script.🤖 Generated with Claude Code