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

skeema / knownhosts
93%

Build:
DEFAULT BRANCH: main
Repo Added 24 Mar 2023 09:49PM UTC
Files 1
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

LAST BUILD ON BRANCH main
branch: SELECT
CHANGE BRANCH
x
  • No branch selected
  • actions-tweaks
  • certs-backwards-compat
  • fix-wildcards-port-match
  • main
  • refs/tags/v1.3.0
  • refs/tags/v1.3.1

13 Jun 2025 07:42PM UTC coverage: 93.249%. Remained the same
15642859456

push

github

evanelias
tests: fix test logic for x/crypto 0.37.0 change

In golang.org/x/crypto v0.37.0+, https://github.com/golang/crypto/pull/254 has
been merged, which means x/crypto/ssh/knownhosts can return multiple keys of
the same type in its KeyError.Want slice.

Here in skeema/knownhosts, our logic already handles that properly, and
ensures that HostKeyAlgorithms is de-duped; see commit 3a35d9f from Sep 2023.
However, in that commit I failed to adjust one of the tests, which examines
the returned keys (which are intentionally not de-duped) rather than the
algorithms (which are de-duped).

This commit fixes the test to now work properly with x/crypto v0.37.0+.

221 of 237 relevant lines covered (93.25%)

20.91 hits per line

Relevant lines Covered
Build:
Build:
237 RELEVANT LINES 221 COVERED LINES
20.91 HITS PER LINE
Source Files on main
  • List 1
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
15642859456 main tests: fix test logic for x/crypto 0.37.0 change In golang.org/x/crypto v0.37.0+, https://github.com/golang/crypto/pull/254 has been merged, which means x/crypto/ssh/knownhosts can return multiple keys of the same type in its KeyError.Want slice.... push 13 Jun 2025 07:54PM UTC evanelias github
93.25
13955250809 main update dependency golang.org/x/crypto to v0.36.0 This commit also updates indirect dependency golang.org/x/sys to v0.31.0, updates the Go version in go.mod to 1.23, and tidies the go.sum. push 19 Mar 2025 07:38PM UTC evanelias github
93.25
13707152973 main comments: update to reflect golang.org/x/crypto/ssh/knownhosts change As of the next release of the golang.org/x/crypto module, it will be possible for golang.org/x/crypto/ssh/knownhosts to return multiple keys of the same type for the same host,... push 06 Mar 2025 08:04PM UTC evanelias github
93.25
13063714014 refs/tags/v1.3.1 update dependency golang.org/x/crypto to v0.25.0 This commit also updates indirect dependency golang.org/x/sys to v0.29.0, updates the Go version in go.mod to 1.22, tidies the go.sum, and updates the copyright year in docs. push 31 Jan 2025 12:16AM UTC evanelias github
93.31
13041833759 main update dependency golang.org/x/crypto to v0.25.0 This commit also updates indirect dependency golang.org/x/sys to v0.29.0, updates the Go version in go.mod to 1.22, tidies the go.sum, and updates the copyright year in docs. push 29 Jan 2025 10:41PM UTC evanelias github
93.31
10048465564 main go.mod: update golang.org/x dependencies push 22 Jul 2024 09:14PM UTC evanelias github
93.31
9964385779 refs/tags/v1.3.0 docs: add PR template and CONTRIBUTING.md guide; minor README tweaks push 16 Jul 2024 09:30PM UTC evanelias github
93.31
9964291783 main docs: add PR template and CONTRIBUTING.md guide; minor README tweaks push 16 Jul 2024 09:21PM UTC evanelias github
93.31
9963479832 main host matching: handle wildcards with non-standard port (#10) In OpenSSH, wildcard host pattern entries in a known_hosts file can match hosts regardless of their port number. However, x/crypto/ssh/knownhosts does not follow this behavior, instea... push 16 Jul 2024 08:14PM UTC web-flow github
93.31
9946292371 fix-wildcards-port-match host matching: handle wildcards with non-standard port In OpenSSH, wildcard host pattern entries in a known_hosts file can match hosts regardless of their port number. However, x/crypto/ssh/knownhosts does not follow this behavior, instead requir... Pull #10 15 Jul 2024 08:36PM UTC evanelias github
93.31
See All Builds (24)
  • Repo on GitHub
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

© 2025 Coveralls, Inc