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

skeema / knownhosts / 15642859456
92%

Build:
DEFAULT BRANCH: main
Ran 13 Jun 2025 07:54PM UTC
Jobs 1
Files 1
Run time 2min
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

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

Jobs
ID Job ID Ran Files Coverage
1 15642859456.1 13 Jun 2025 07:54PM UTC 1
93.25
GitHub Action Run
Source Files on build 15642859456
  • Tree
  • List 1
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 5b6f59f4 on github
  • Prev Build on main (#13955250809)
  • Next Build on main (#18326630445)
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