(t *testing.T)
| 157 | } |
| 158 | |
| 159 | func TestStringReadPasswordFromFile(t *testing.T) { |
| 160 | content := []byte("my-password-on-file\n") |
| 161 | f, cleanup := newFile(t, content) |
| 162 | defer cleanup() |
| 163 | |
| 164 | s, err := ReadStringPasswordFromFile(f.Name()) |
| 165 | require.NoError(t, err) |
| 166 | require.Equal(t, "my-password-on-file", s, "expected %s to equal %s", s, content) |
| 167 | } |
| 168 | |
| 169 | func TestReadInput(t *testing.T) { |
| 170 | type args struct { |
nothing calls this directly
no test coverage detected
searching dependent graphs…