• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

rm-hull / dot-block / 27230176089
60%
main: 61%

Build:
Build:
LAST BUILD BRANCH: dependabot/go_modules/github.com/rm-hull/godx-0.2.4
DEFAULT BRANCH: main
Ran 09 Jun 2026 07:23PM UTC
Jobs 1
Files 30
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

09 Jun 2026 07:22PM UTC coverage: 60.058% (-0.7%) from 60.736%
27230176089

Pull #150

github

gemini-pr-agent[bot]
chore: iterative updates from Gemini based on PR comment

I have added integration tests for both the `GET` and `POST` `/dns-query` endpoints to `internal/integration_test.go`.

### Changes Made:
- **Imports:** Added `bytes`, `encoding/base64`, `io`, and `net/http` to support HTTP requests and DNS message encoding.
- **Configuration:** Updated the test `App` configuration to use a fixed `HttpPort` (8080) to ensure the DoH tests have a reliable endpoint.
- **Test Cases:** Added four new test cases to the `TestIntegration_DNSFunctionality` suite:
    - `DoH GET - Good Domain`
    - `DoH GET - Blocked Domain`
    - `DoH POST - Good Domain`
    - `DoH POST - Blocked Domain`
- **Test Logic:** Implemented the logic to:
    - Pack DNS messages.
    - Perform `GET` requests with base64-encoded DNS queries.
    - Perform `POST` requests with `application/dns-message` bodies.
    - Unpack the response and validate that domains are correctly allowed or blocked (verified by the presence of the `ns.blocked.local.` SOA record).

### Verification:
I ran the integration tests using `go test -v ./internal`, and all tests passed, including the new DoH scenarios.
Pull Request #150: feat: implement DNS-over-HTTPS (DoH) support

45 of 93 new or added lines in 2 files covered. (48.39%)

9 existing lines in 1 file now uncovered.

1242 of 2068 relevant lines covered (60.06%)

841.36 hits per line

Uncovered Changes

Lines Coverage ∆ File
45
42.31
internal/routes/doh.go
3
58.68
-0.77% internal/app.go

Coverage Regressions

Lines Coverage ∆ File
9
58.68
-0.77% internal/app.go
Jobs
ID Job ID Ran Files Coverage
1 27230176089.1 09 Jun 2026 07:23PM UTC 30
60.06
GitHub Action Run
Source Files on build 27230176089
  • Tree
  • List 30
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #150
  • PR Base - main (#27189269258)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc