(t *testing.T, fs billy.Filesystem, path string)
| 525 | } |
| 526 | |
| 527 | func mustRead(t *testing.T, fs billy.Filesystem, path string) string { |
| 528 | t.Helper() |
| 529 | f, err := fs.OpenFile(path, os.O_RDONLY, 0o644) |
| 530 | require.NoError(t, err) |
| 531 | content, err := io.ReadAll(f) |
| 532 | require.NoError(t, err) |
| 533 | return string(content) |
| 534 | } |
| 535 | |
| 536 | // generates a random ed25519 private key |
| 537 | func randKeygen(t *testing.T) gossh.Signer { |
no test coverage detected